package com.sqly.doc.menu.jktjb;

import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.os.Environment;
import android.support.annotation.IdRes;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RadioGroup;
import android.widget.TextView;
import android.widget.Toast;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.cazaea.sweetalert.SweetAlertDialog;
import com.ihidea.multilinechooselib.MultiLineChooseLayout;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.sqly.doc.R;
import com.sqly.doc.base.MyBaseActivity;
import com.sqly.doc.menu.camera.CameraChoose;
import com.sqly.doc.menu.gxy.gxy;
import com.sqly.doc.pojo.Jktjb;
import com.sqly.doc.pojo.JuMin;
import com.sqly.doc.pojo.RetMsg;
import com.sqly.doc.user.choose_user;
import com.sqly.doc.util.CreateBitmap;
import com.sqly.doc.util.HttpUrl;
import com.sqly.doc.util.MyToastUtil;
import com.sqly.doc.util.NetWorkUtils;
import com.sqly.doc.util.SharedPreferencesUtils;
import com.sqly.doc.util.SweetAlertDialogUtil;
import com.sqly.doc.util.Url;
import com.sqly.doc.util.UserClient;
import com.sqly.doc.util.WriteActivity;
import com.sqly.doc.validate.Required;
import com.sqly.doc.validate.ValidateManager;
import com.sqly.doc.view.CustomDatePicker;
import com.sqly.doc.view.StringUtils;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.Map;

import cz.msebera.android.httpclient.Header;

//import cn.pedant.SweetAlert.SweetAlertDialog;

/**
 * Created by Administrator on
 */

public class tjb_info extends MyBaseActivity {

    private ValidateManager validateManager = new ValidateManager();

    static {
        ValidateManager.setValidateHandler(new ValidateManager.IValidateHandler() {
            @Override
            public void onValidateHandler(EditText editText, String validateMessage) {
                Toast.makeText(editText.getContext(), validateMessage, Toast.LENGTH_LONG).show();
            }
        });
        ValidateManager.register(0, new ValidateManager.IValidator() {
            @Override
            public boolean validate(int validateType, EditText editText, String text, Map<String, Object> extras) {
                return false;
            }
        });
    }

    JuMin returnJumin;
    Jktjb obj;
    Context con = tjb_info.this;
    private CustomDatePicker customDatePicker;
    //页面的容器
    LinearLayout zz_ll, ybzk_ll, shfs_ll, zqgn_ll, chati_ll, fzjc_ll, xczyjkwt_ll, zyzlqk_ll, zyyyqk_ll, fmyghyfjzs_ll, jkpj_jkzd_ll;
    ImageView zz_image, ybzk_image, shfs_image, zqgn_image, chati_image, fzjc_image, xczyjkwt_image, zyzlqk_image, zyyyqk_image, fmyghyfjzs_image, jkpj_jkzd_image;
    LinearLayout zz_content_ll, ybzk_content_ll, shfs_content_ll, zqgn_content_ll, chati_content_ll, fzjc_content_ll, xczyjkwt_content_ll, zyzlqk_content_ll, zyyyqk_content_ll, fmyghyfjzs_content_ll, jkpj_jkzd_content_ll;
    LinearLayout dahll;

    //------基础信息及症状部分---
    @Required(message = "姓名不能为空,请点击选择用户")
    TextView XINGMING;
    TextView TJRQ, JKDAH, fkrq;
    EditText ZZQT;
    //症状多选
    MultiLineChooseLayout zhengzhuang;
    private List<String> zhengzhuangdata = new ArrayList<>();
    //------ 一般状况部分 ---
    EditText TIWEN, MAILV, HXPL, ZXUEYA1, ZXUEYA2, YXUEYA1, YXUEYA2, SHENGAO, TIZHONG, YAOWEI, BMI, jmqm, fkr;
    RadioGroup LNRJKZWPG, LNRSHZWPG, LNRRZGN, LNRQGZT;
    EditText LNRRZGNPF, LNRQGZTPF;
    //------ 生活方式部分 ---
    RadioGroup TYDLPL, XYZK, YJPL, SFJJ, JNSFZJ;
    EditText TYDLSC, TYDLNS, TYDLFS, RXYL, KSXYNL, JYNL, RYJL, JJNL, KSYJNL, YJZLQT;
    MultiLineChooseLayout YSXG, YJZL;
    private List<String> ysxgdata = new ArrayList<>();
    private List<String> yjzldata = new ArrayList<>();

    RadioGroup ZYB, DWFCFH, DWFSFH, DWWLFH, DWHXFH, DWQTFH;
    EditText ZYBGZ, ZYBCYNS, DWFCZL, DWFSZL, DWWLZL, DWHXZL, DWQTZL;
    //----- 脏器功能 --------
    RadioGroup KQKC, KQCL, KQYB, TINGLI, YDGN;
    EditText ZYSL, YYSL, ZYSLJZ, YYSLJZ;
    //----- 查体 --------
    RadioGroup YANDI, PIFU, GONGMO, LBJ, TZX, HXY, LUOYIN, XINLVA, ZAYIN, YATONG, BAOKUAI, GANDA, PIDA, YDXZY, XZSZ, ZBDMBD, GMZZ, RUXIAN, FKWY, FKYD, FKGJ, FKGT, FKFJ;
    EditText YANDIYC, PIFUQT, GONGMOQT, LBJQT, HXYYC, LUOYINQT, XINLV, ZAYINY, YATONGY, BAOKUAIY, GANDAY, PIDAY, YDXZYY, GMZZQT, RUXIANQT, FKWYYC, FKYDYC, FKGJYC, FKGTYC, FKFJYC, CTQT;
    //----- 辅助检查 --------
    EditText FZXHDB, FZBXB, FZXXB, FZXCGQT, FZNDB, FZNT, FZNTT, FZNQX, FZNCGQT, FZKFXT, FZTXBGAS, FZNWLBDB, FZTHXHDB;
    EditText FZXQGBZAM, FZXQGCZAM, FZBDB, FZZDHS, FZJHDHS, FZXQJG, FZXNSD, FZXJND, FZXNND, FZZDGC, FZGYSZ, FZXQDMD, FZXQGMD, FZXDTYC;
    EditText FZXBXXPYC, FZBCHAOYC, FZQTBCHAOYC, FZGJTPYC, FZQT;
    RadioGroup FZDBQX, FZYGBMKY, FZXBXXP, FZBCHAO, FZQTBCHAO, FZGJTP;
    MultiLineChooseLayout FZXDT;
    private List<String> fzxdtdata = new ArrayList<>();
    //-----现存主要健康问题 --------
    //JKXZJB,JKXGJB(数据库“心血管疾病”为2个字段，现只是用JKXZJB)
    MultiLineChooseLayout JKNXGJB, JKSZJB, JKXZJB, JKYBJB, JKSJXTJB, JKQTXTJB;

    private List<String> jknxgjbdata = new ArrayList<>();
    private List<String> jkszjbdata = new ArrayList<>();
    private List<String> jkxzjbdata = new ArrayList<>();
    private List<String> jkybjbdata = new ArrayList<>();
    private List<String> jksjxtjbdata = new ArrayList<>();
    private List<String> jkqtxtjbdata = new ArrayList<>();

    //JKXZJBQT,JKXGJBQT(数据库“心血管疾病”为2个字段，现只是用JKXZJBQT)
    EditText JKNXGJBQT, JKSZJBQT, JKXZJBQT, JKYBJBQT, JKSJXTJBQT, JKQTXTJBQT;
    //----- 住院治疗情况 --------
    RadioGroup ZYS, JTBCS, FZXX, FZXXRH;
    TextView ZYRYRQ1, ZYCYRQ1, ZYRYRQ2, ZYCYRQ2, JTJCRQ1, JTCCRQ1, JTJCRQ2, JTCCRQ2;
    EditText ZYYY1, ZYYLJG1, ZYBAH1;
    EditText ZYYY2, ZYYLJG2, ZYBAH2;
    EditText JTYY1, JTYLJG1, JTBAH1;
    EditText JTYY2, JTYLJG2, JTBAH2;
    //------ 主要用药情况 --------
    RadioGroup ZYYYQK, FYYCX1, FYYCX2, FYYCX3, FYYCX4, FYYCX5, FYYCX6;
    EditText YPMC1, YPYF1, YPYL1, YYSJ1;
    EditText YPMC2, YPYF2, YPYL2, YYSJ2;
    EditText YPMC3, YPYF3, YPYL3, YYSJ3;
    EditText YPMC4, YPYF4, YPYL4, YYSJ4;
    EditText YPMC5, YPYF5, YPYL5, YYSJ5;
    EditText YPMC6, YPYF6, YPYL6, YYSJ6;
    //------ 非免疫规划预防接种史---
    RadioGroup FMYJZ;
    TextView JZRQ1,JZRQ2,JZRQ3;
    EditText YMMC1, JZJG1;
    EditText YMMC2, JZJG2;
    EditText YMMC3, JZJG3;
    //------ 健康评价 健康指导 --------
    RadioGroup JKPJ, qzr;
    EditText JKPJ1, JKPJ2, JKPJ3, JKPJ4, WXYSJTZ, WXYSYM, WXYSKZQT;
    MultiLineChooseLayout JKZD, WXYSKZ;
    private List<String> jkzddata = new ArrayList<>();
    private List<String> wxyskzdata = new ArrayList<>();
    //标题
    TextView title, uname;
    LinearLayout back;
    ImageView qm;
    String picname = "";
    boolean isadd = false;//是否是新添加
    String url = "";

    ImageView sfysqm, brqm, xcqm;
    String sfysqmpic = "", brqmpic = "",xcqmpic ="";
    ImageView xcpaizhao;
    TextView pz_record_id,jmqm_record_id, ysqm_record_id;
    boolean pzChange = false;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initUI() {
        setContentView(R.layout.tjb_info);
        obj = (Jktjb) getIntent().getExtras().getSerializable("b");
        if (obj == null)
            obj = new Jktjb();
        initTopUI();//顶部空间
        initTjbZZ();//初始化症状及表头
        initYbzkUI();//一般状况部分
        initShfsUI();
        initZqgnUI();
        initChaTiUI();
        initFzjcUI();
        initXczyjkwtUI();
        initZyzlqkUI();
        initZyyyqkUI();
        initFmyghyfjzsUI();
        initJkpjJkzdUI();
        if(!StringUtils.isEmpty(obj.getImg())){
            //ImageLoader.getInstance().displayImage(Url.img_url()+obj.getImg(),brqm);
            ImageLoader.getInstance().displayImage(Url.newStaticurl(SharedPreferencesUtils.getParam(con, "token", "").toString(), "2" ,obj.getImg()),brqm);
        }
        if(!StringUtils.isEmpty(obj.getImg1())){
            //ImageLoader.getInstance().displayImage(Url.img_url()+obj.getImg1(),sfysqm);
            ImageLoader.getInstance().displayImage(Url.newStaticurl(SharedPreferencesUtils.getParam(con, "token", "").toString(), "2" ,obj.getImg1()),sfysqm);
        }
        if(!StringUtils.isEmpty(obj.getImg2())){
            //ImageLoader.getInstance().displayImage(Url.img_url()+obj.getImg2(),xcqm);
            ImageLoader.getInstance().displayImage(Url.newStaticurl(SharedPreferencesUtils.getParam(con, "token", "").toString(), "2" ,obj.getImg2()),xcqm);
        }

        menuClick();
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {

    }

    /***
     * 初始化顶部控件
     */
    private void initTopUI() {
        title = (TextView) findViewById(R.id.title);
        uname = (TextView) findViewById(R.id.uname);
        title.setText("健康体检表");
        uname.setText("保存");
        back = (LinearLayout) findViewById(R.id.back);
        XINGMING = (TextView) findViewById(R.id.xm);
        if (obj != null && !StringUtils.isEmpty(obj.getXINGMING())) {
            XINGMING.setText(obj.getXINGMING());
        } else {
            XINGMING.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    startActivityForResult(new Intent(con, choose_user.class).putExtra("cname", "tjb_info.class"), 1);
                }
            });
        }
        //医生签名
        sfysqm = (ImageView) findViewById(R.id.sfysqm);
        if (obj != null && !StringUtils.isEmpty(obj.getSfysqm())) {
            sfysqmpic = obj.getSfysqm();
            sfysqm.setImageBitmap(BitmapFactory.decodeFile(Environment.getExternalStorageDirectory() + "/" + sfysqmpic + ".jpg"));
        }
        sfysqm.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivityForResult(new Intent(con, WriteActivity.class)
                        .putExtra("cardnum", obj.getCARDNUM())
                        .putExtra("tabId", null==obj.getSFJLH()||"".equals(obj.getSFJLH()) ? "noid" : obj.getSFJLH())
                        .putExtra("tabType", "jktjb")
                        .putExtra("imageType", "img1")
                        .putExtra("class","gxy.class"), 8);
            }
        });
        //本人签名
        brqm = (ImageView) findViewById(R.id.brqm);
        if (obj != null && !StringUtils.isEmpty(obj.getBrqm())) {
            brqmpic = obj.getBrqm();
            Log.i("tppath",Environment.getExternalStorageDirectory() + "/" + brqmpic + ".jpg");
            brqm.setImageBitmap(BitmapFactory.decodeFile(Environment.getExternalStorageDirectory() + "/" + brqmpic + ".jpg"));
        }
        brqm.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivityForResult(new Intent(con, WriteActivity.class)
                        .putExtra("cardnum", obj.getCARDNUM())
                        .putExtra("tabId", null==obj.getSFJLH()||"".equals(obj.getSFJLH()) ? "noid" : obj.getSFJLH())
                        .putExtra("tabType", "jktjb")
                        .putExtra("imageType", "img")
                        .putExtra("class","gxy.class"), 9);
            }
        });
        xcqm = (ImageView) findViewById(R.id.xcqm);
        if (obj != null && !StringUtils.isEmpty(obj.getXcqm())) {
            xcqmpic = obj.getXcqm();
//            //清空图片
//            xcqm.setWillNotDraw(true);
//            //设置图片
//            xcqm.setWillNotDraw(false);
            xcqm.setImageBitmap(BitmapFactory.decodeFile(Environment.getExternalStorageDirectory() + "/" + xcqmpic + ".jpg"));
//            xcqm.refreshDrawableState();
        }
        xcqm.setOnClickListener(new CustomerListener());
        //现场拍照
        xcpaizhao = (ImageView) findViewById(R.id.xcpaizhao);
        xcpaizhao.setOnClickListener(new CustomerListener());
        //现场拍照照片id
        pz_record_id = (TextView) findViewById(R.id.pz_record_id);
        if(obj != null && !StringUtils.isEmpty(obj.getImg2())) {
            String[] img2Arr =obj.getImg2().split("/");
            if(null !=img2Arr && img2Arr.length>1){
                pz_record_id.setText(img2Arr[1]);
            }
        }
        jmqm_record_id= (TextView) findViewById(R.id.jmqm_record_id);
        if(obj != null && !StringUtils.isEmpty(obj.getImg())) {
            String[] img2Arr =obj.getImg().split("/");
            if(null !=img2Arr && img2Arr.length>1){
                jmqm_record_id.setText(img2Arr[1]);
            }
        }
        ysqm_record_id= (TextView) findViewById(R.id.ysqm_record_id);
        if(obj != null && !StringUtils.isEmpty(obj.getImg1())) {
            //fjhdycrhsf/D24E75C5BB5E417EBE65494CA09BF399.jpg
            String[] img2Arr =obj.getImg1().split("/");
            if(null !=img2Arr && img2Arr.length>1){
                ysqm_record_id.setText(img2Arr[1]);
            }
        }
        uname.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!ValidateManager.validate(con)) {
                    //关于EditText的验证
//                } else if (picname.equals("")) {
//                    new SweetAlertDialog(con, SweetAlertDialog.ERROR_TYPE)
//                            .setTitleText("提示")
//                            .setContentText("您还没有签名！")
//                            .show();
                } else {
                    /*                  obj.setSCJDRQ(SCJDRQ.getText().toString());*/
                    obj.setJKDAH(JKDAH.getText().toString());
                    obj.setXINGMING(XINGMING.getText().toString());
                    obj.setSFRQ(TJRQ.getText().toString());
                    ArrayList<Integer> zhengzhuanglist = zhengzhuang.getAllItemSelectedIndex();
                    String zhengzhuangs = "";
                    for (int i = 0; i < zhengzhuanglist.size(); i++) {
//                        if (i == 0)
//                            zhengzhuangs = zhengzhuanglist.get(i) + "";
//                        else
//                            zhengzhuangs = zhengzhuangs + "," + zhengzhuanglist.get(i);
                        if (i == 0)
                            zhengzhuangs = (zhengzhuanglist.get(i) + 1) + "";
                        else
                            zhengzhuangs = zhengzhuangs + "," + (zhengzhuanglist.get(i) + 1);
                    }
                    obj.setZHENGZHUANG(zhengzhuangs);
                    obj.setZZQT(ZZQT.getText().toString());
                    obj.setTIWEN(TIWEN.getText().toString());
                    obj.setMAILV(MAILV.getText().toString());
                    obj.setHXPL(HXPL.getText().toString());
                    obj.setZXUEYA1(ZXUEYA1.getText().toString());
                    obj.setZXUEYA2(ZXUEYA2.getText().toString());
                    obj.setYXUEYA1(YXUEYA1.getText().toString());
                    obj.setYXUEYA2(YXUEYA2.getText().toString());
                    obj.setSHENGAO(SHENGAO.getText().toString());
                    obj.setTIZHONG(TIZHONG.getText().toString());
                    obj.setYAOWEI(YAOWEI.getText().toString());
                    obj.setBMI(BMI.getText().toString());
                    obj.setLNRRZGNPF(LNRRZGNPF.getText().toString());
                    obj.setLNRQGZTPF(LNRQGZTPF.getText().toString());

                    obj.setTYDLSC(TYDLSC.getText().toString());
                    obj.setTYDLNS(TYDLNS.getText().toString());
                    obj.setTYDLFS(TYDLFS.getText().toString());
                    ArrayList<Integer> ysxglist = YSXG.getAllItemSelectedIndex();
                    String ysxgs = "";
                    for (int i = 0; i < ysxglist.size(); i++) {
                        if (i == 0)
                            ysxgs = (ysxglist.get(i) + 1) + "";
                        else
                            ysxgs = ysxgs + "," + (ysxglist.get(i) + 1);
                    }
                    obj.setYSXG(ysxgs);
                    obj.setRXYL(RXYL.getText().toString());
                    obj.setKSXYNL(KSXYNL.getText().toString());
                    obj.setJYNL(JYNL.getText().toString());
                    obj.setRYJL(RYJL.getText().toString());
                    obj.setJJNL(JJNL.getText().toString());
                    obj.setKSYJNL(KSYJNL.getText().toString());
                    ArrayList<Integer> yjzllist = YJZL.getAllItemSelectedIndex();
                    String yjzls = "";
                    for (int i = 0; i < yjzllist.size(); i++) {
                        if (i == 0)
                            yjzls = (yjzllist.get(i) + 1) + "";
                        else
                            yjzls = yjzls + "," + (yjzllist.get(i) + 1);
                    }
                    obj.setYJZL(yjzls);
                    obj.setYJZLQT(YJZLQT.getText().toString());

                    obj.setZYBGZ(ZYBGZ.getText().toString());
                    obj.setZYBCYNS(ZYBCYNS.getText().toString());
                    obj.setDWFCZL(DWFCZL.getText().toString());
                    obj.setDWFSZL(DWFSZL.getText().toString());
                    obj.setDWWLZL(DWWLZL.getText().toString());
                    obj.setDWHXZL(DWHXZL.getText().toString());
                    obj.setDWQTZL(DWQTZL.getText().toString());

                    obj.setZYSL(ZYSL.getText().toString());
                    obj.setYYSL(YYSL.getText().toString());
                    obj.setZYSLJZ(ZYSLJZ.getText().toString());
                    obj.setYYSLJZ(YYSLJZ.getText().toString());

                    obj.setYANDIYC(YANDIYC.getText().toString());
                    obj.setPIFUQT(PIFUQT.getText().toString());
                    obj.setGONGMOQT(GONGMOQT.getText().toString());
                    obj.setLBJQT(LBJQT.getText().toString());
                    obj.setHXYYC(HXYYC.getText().toString());
                    obj.setLUOYINQT(LUOYINQT.getText().toString());
                    obj.setXINLV(XINLV.getText().toString());
                    obj.setZAYINY(ZAYINY.getText().toString());
                    obj.setYATONGY(YATONGY.getText().toString());
                    obj.setBAOKUAIY(BAOKUAIY.getText().toString());
                    obj.setGANDAY(GANDAY.getText().toString());
                    obj.setPIDAY(PIDAY.getText().toString());
                    obj.setYDXZYY(YDXZYY.getText().toString());
                    obj.setGMZZQT(GMZZQT.getText().toString());
                    obj.setRUXIANQT(RUXIANQT.getText().toString());
                    obj.setFKWYYC(FKWYYC.getText().toString());
                    obj.setFKYDYC(FKYDYC.getText().toString());
                    obj.setFKGJYC(FKGJYC.getText().toString());
                    obj.setFKGTYC(FKGTYC.getText().toString());
                    obj.setFKFJYC(FKFJYC.getText().toString());
                    obj.setCTQT(CTQT.getText().toString());

//                    obj.setFZXX(FZXX.getText().toString());
//                    obj.setFZXXRH(FZXXRH.getText().toString());
                    obj.setFZXHDB(FZXHDB.getText().toString());
                    obj.setFZBXB(FZBXB.getText().toString());
                    obj.setFZXXB(FZXXB.getText().toString());
                    obj.setFZXCGQT(FZXCGQT.getText().toString());
                    obj.setFZNDB(FZNDB.getText().toString());
                    obj.setFZNT(FZNT.getText().toString());
                    obj.setFZNTT(FZNTT.getText().toString());
                    obj.setFZNQX(FZNQX.getText().toString());
                    obj.setFZNCGQT(FZNCGQT.getText().toString());
                    obj.setFZKFXT(FZKFXT.getText().toString());
                    obj.setFZTXBGAS(FZTXBGAS.getText().toString());
                    obj.setFZNWLBDB(FZNWLBDB.getText().toString());
                    obj.setFZTHXHDB(FZTHXHDB.getText().toString());
                    obj.setFZXQGBZAM(FZXQGBZAM.getText().toString());
                    obj.setFZXQGCZAM(FZXQGCZAM.getText().toString());
                    obj.setFZBDB(FZBDB.getText().toString());
                    obj.setFZZDHS(FZZDHS.getText().toString());
                    obj.setFZJHDHS(FZJHDHS.getText().toString());
                    obj.setFZXQJG(FZXQJG.getText().toString());
                    obj.setFZXNSD(FZXNSD.getText().toString());
                    obj.setFZXJND(FZXJND.getText().toString());
                    obj.setFZXNND(FZXNND.getText().toString());
                    obj.setFZZDGC(FZZDGC.getText().toString());
                    obj.setFZGYSZ(FZGYSZ.getText().toString());
                    obj.setFZXQDMD(FZXQDMD.getText().toString());
                    obj.setFZXQGMD(FZXQGMD.getText().toString());

                    ArrayList<Integer> fzxdtlist = FZXDT.getAllItemSelectedIndex();
                    String fzxdts = "";
                    for (int i = 0; i < fzxdtlist.size(); i++) {
                        if (i == 0)
                            fzxdts = (fzxdtlist.get(i) + 1) + "";
                        else
                            fzxdts = fzxdts + "," + (fzxdtlist.get(i) + 1);
                    }
                    obj.setFZXDT(fzxdts);
                    obj.setFZXDTYC(FZXDTYC.getText().toString());
                    obj.setFZXBXXPYC(FZXBXXPYC.getText().toString());
                    obj.setFZBCHAOYC(FZBCHAOYC.getText().toString());
                    obj.setFZQTBCHAOYC(FZQTBCHAOYC.getText().toString());
                    obj.setFZGJTPYC(FZGJTPYC.getText().toString());
                    obj.setFZQT(FZQT.getText().toString());

                    ArrayList<Integer> jknxgjblist = JKNXGJB.getAllItemSelectedIndex();
                    String jknxgjbs = "";
                    for (int i = 0; i < jknxgjblist.size(); i++) {
                        if (i == 0)
                            jknxgjbs = (jknxgjblist.get(i) + 1) + "";
                        else
                            jknxgjbs = jknxgjbs + "," + (jknxgjblist.get(i) + 1);
                    }
                    obj.setJKNXGJB(jknxgjbs);
                    obj.setJKNXGJBQT(JKNXGJBQT.getText().toString());
                    ArrayList<Integer> jkszjblist = JKSZJB.getAllItemSelectedIndex();
                    String jkszjbs = "";
                    for (int i = 0; i < jkszjblist.size(); i++) {
                        if (i == 0)
                            jkszjbs = (jkszjblist.get(i) + 1) + "";
                        else
                            jkszjbs = jkszjbs + "," + (jkszjblist.get(i) + 1);
                    }
                    obj.setJKSZJB(jkszjbs);
                    obj.setJKSZJBQT(JKSZJBQT.getText().toString());
                    ArrayList<Integer> jkxzjblist = JKXZJB.getAllItemSelectedIndex();
                    String jkxzjbs = "";
                    for (int i = 0; i < jkxzjblist.size(); i++) {
                        if (i == 0)
                            jkxzjbs = (jkxzjblist.get(i) + 1) + "";
                        else
                            jkxzjbs = jkxzjbs + "," + (jkxzjblist.get(i) + 1);
                    }
                    obj.setJKXZJB(jkxzjbs);
                    obj.setJKXZJBQT(JKXZJBQT.getText().toString());
                    ArrayList<Integer> jkybjblist = JKYBJB.getAllItemSelectedIndex();
                    String jkybjbs = "";
                    for (int i = 0; i < jkybjblist.size(); i++) {
                        if (i == 0)
                            jkybjbs = (jkybjblist.get(i) + 1) + "";
                        else
                            jkybjbs = jkybjbs + "," + (jkybjblist.get(i) + 1);
                    }
                    obj.setJKYBJB(jkybjbs);
                    obj.setJKYBJBQT(JKYBJBQT.getText().toString());
                    ArrayList<Integer> jksjxtjblist = JKSJXTJB.getAllItemSelectedIndex();
                    String jksjxtjbs = "";
                    for (int i = 0; i < jksjxtjblist.size(); i++) {
                        if (i == 0)
                            jksjxtjbs = (jksjxtjblist.get(i) + 1) + "";
                        else
                            jksjxtjbs = jksjxtjbs + "," + (jksjxtjblist.get(i) + 1);
                    }
                    obj.setJKSJXTJB(jksjxtjbs);
                    obj.setJKSJXTJBQT(JKSJXTJBQT.getText().toString());
                    ArrayList<Integer> jkqtxtjblist = JKQTXTJB.getAllItemSelectedIndex();
                    String jkqtxtjbs = "";
                    for (int i = 0; i < jkqtxtjblist.size(); i++) {
                        if (i == 0)
                            jkqtxtjbs = (jkqtxtjblist.get(i) + 1) + "";
                        else
                            jkqtxtjbs = jkqtxtjbs + "," + (jkqtxtjblist.get(i) + 1);
                    }
                    obj.setJKQTXTJB(jkqtxtjbs);
                    obj.setJKQTXTJBQT(JKQTXTJBQT.getText().toString());

                    obj.setZYRYRQ1(ZYRYRQ1.getText().toString());
                    obj.setZYCYRQ1(ZYCYRQ1.getText().toString());
                    obj.setZYYY1(ZYYY1.getText().toString());
                    obj.setZYYLJG1(ZYYLJG1.getText().toString());
                    obj.setZYBAH1(ZYBAH1.getText().toString());
                    obj.setZYRYRQ2(ZYRYRQ2.getText().toString());
                    obj.setZYCYRQ2(ZYCYRQ2.getText().toString());
                    obj.setZYYY2(ZYYY2.getText().toString());
                    obj.setZYYLJG2(ZYYLJG2.getText().toString());
                    obj.setZYBAH2(ZYBAH2.getText().toString());
                    obj.setJTJCRQ1(JTJCRQ1.getText().toString());
                    obj.setJTCCRQ1(JTCCRQ1.getText().toString());
                    obj.setJTYY1(JTYY1.getText().toString());
                    obj.setJTYLJG1(JTYLJG1.getText().toString());
                    obj.setJTBAH1(JTBAH1.getText().toString());
                    obj.setJTJCRQ2(JTJCRQ2.getText().toString());
                    obj.setJTCCRQ2(JTCCRQ2.getText().toString());
                    obj.setJTYY2(JTYY2.getText().toString());
                    obj.setJTYLJG2(JTYLJG2.getText().toString());
                    obj.setJTBAH2(JTBAH2.getText().toString());

                    obj.setYPMC1(YPMC1.getText().toString());
                    obj.setYPYL1(YPYL1.getText().toString());
                    obj.setYYSJ1(YYSJ1.getText().toString());
                    obj.setYPYF1(YPYF1.getText().toString());
                    obj.setYPMC2(YPMC2.getText().toString());
                    obj.setYPYL2(YPYL2.getText().toString());
                    obj.setYYSJ2(YYSJ2.getText().toString());
                    obj.setYPYF2(YPYF2.getText().toString());
                    obj.setYPMC3(YPMC3.getText().toString());
                    obj.setYPYL3(YPYL3.getText().toString());
                    obj.setYYSJ3(YYSJ3.getText().toString());
                    obj.setYPYF3(YPYF3.getText().toString());
                    obj.setYPMC4(YPMC4.getText().toString());
                    obj.setYPYL4(YPYL4.getText().toString());
                    obj.setYYSJ4(YYSJ4.getText().toString());
                    obj.setYPYF4(YPYF4.getText().toString());
                    obj.setYPMC5(YPMC5.getText().toString());
                    obj.setYPYL5(YPYL5.getText().toString());
                    obj.setYYSJ5(YYSJ5.getText().toString());
                    obj.setYPYF5(YPYF5.getText().toString());
                    obj.setYPMC6(YPMC6.getText().toString());
                    obj.setYPYL6(YPYL6.getText().toString());
                    obj.setYYSJ6(YYSJ6.getText().toString());
                    obj.setYPYF6(YPYF6.getText().toString());

                    obj.setYMMC1(YMMC1.getText().toString());
                    obj.setJZRQ1(JZRQ1.getText().toString());
                    obj.setJZJG1(JZJG1.getText().toString());
                    obj.setYMMC2(YMMC2.getText().toString());
                    obj.setJZRQ2(JZRQ2.getText().toString());
                    obj.setJZJG2(JZJG2.getText().toString());
                    obj.setYMMC3(YMMC3.getText().toString());
                    obj.setJZRQ3(JZRQ3.getText().toString());
                    obj.setJZJG3(JZJG3.getText().toString());

                    obj.setJKPJ1(JKPJ1.getText().toString());
                    obj.setJKPJ2(JKPJ2.getText().toString());
                    obj.setJKPJ3(JKPJ3.getText().toString());
                    obj.setJKPJ4(JKPJ4.getText().toString());
                    ArrayList<Integer> jkzdlist = JKZD.getAllItemSelectedIndex();
                    String jkzds = "";
                    for (int i = 0; i < jkzdlist.size(); i++) {
                        if (i == 0)
                            jkzds = (jkzdlist.get(i) + 1) + "";
                        else
                            jkzds = jkzds + "," + (jkzdlist.get(i) + 1);
                    }
                    obj.setJKZD(jkzds);
                    ArrayList<Integer> wxyskzlist = WXYSKZ.getAllItemSelectedIndex();
                    String wxyskzs = "";
                    for (int i = 0; i < wxyskzlist.size(); i++) {
                        if (i == 0)
                            wxyskzs = (wxyskzlist.get(i) + 1) + "";
                        else
                            wxyskzs = wxyskzs + "," + (wxyskzlist.get(i) + 1);
                    }
                    obj.setWXYSKZ(wxyskzs);
                    obj.setWXYSJTZ(WXYSJTZ.getText().toString());
                    obj.setWXYSYM(WXYSYM.getText().toString());
                    obj.setWXYSKZQT(WXYSKZQT.getText().toString());

                    obj.setJMQM(jmqm.getText().toString());
                    obj.setFKRQM(fkr.getText().toString());
                    obj.setFKSJ(fkrq.getText().toString());

                    if (NetWorkUtils.isNetworkConnected(con)) {  //////网络存在
                        RequestParams ps = new RequestParams();
                        ps.add("entity.CARDNUM", obj.getCARDNUM());
                        ps.add("entity.JKDAH", obj.getJKDAH());
                        ps.add("entity.XINGMING", obj.getXINGMING());
                        ps.add("entity.SFRQ", obj.getSFRQ());
                        ps.add("entity.ZHENGZHUANG", obj.getZHENGZHUANG());
                        ps.add("entity.ZZQT", obj.getZZQT());

                        ps.add("entity.TIWEN", obj.getTIWEN());
                        ps.add("entity.MAILV", obj.getMAILV());
                        ps.add("entity.HXPL", obj.getHXPL());
                        ps.add("entity.ZXUEYA1", obj.getZXUEYA1());
                        ps.add("entity.ZXUEYA2", obj.getZXUEYA2());
                        ps.add("entity.YXUEYA1", obj.getYXUEYA1());
                        ps.add("entity.YXUEYA2", obj.getYXUEYA2());
                        ps.add("entity.SHENGAO", obj.getSHENGAO());
                        ps.add("entity.TIZHONG", obj.getTIZHONG());
                        ps.add("entity.YAOWEI", obj.getYAOWEI());
                        ps.add("entity.BMI", obj.getBMI());
                        ps.add("entity.LNRJKZWPG", obj.getLNRJKZWPG());
                        ps.add("entity.LNRSHZWPG", obj.getLNRSHZWPG());
                        ps.add("entity.LNRRZGN", obj.getLNRRZGN());
                        ps.add("entity.LNRQGZT", obj.getLNRQGZT());
                        ps.add("entity.LNRRZGNPF", obj.getLNRRZGNPF());
                        ps.add("entity.LNRQGZTPF", obj.getLNRQGZTPF());

                        ps.add("entity.TYDLPL", obj.getTYDLPL());
                        ps.add("entity.TYDLSC", obj.getTYDLSC());
                        ps.add("entity.TYDLNS", obj.getTYDLNS());
                        ps.add("entity.TYDLFS", obj.getTYDLFS());
                        ps.add("entity.YSXG", obj.getYSXG());
                        ps.add("entity.XYZK", obj.getXYZK());
                        ps.add("entity.RXYL", obj.getRXYL());
                        ps.add("entity.KSXYNL", obj.getKSXYNL());
                        ps.add("entity.JYNL", obj.getJYNL());
                        ps.add("entity.YJPL", obj.getYJPL());
                        ps.add("entity.RYJL", obj.getRYJL());
                        ps.add("entity.SFJJ", obj.getSFJJ());
                        ps.add("entity.JJNL", obj.getJJNL());
                        ps.add("entity.KSYJNL", obj.getKSYJNL());
                        ps.add("entity.JNSFZJ", obj.getJNSFZJ());
                        ps.add("entity.YJZL", obj.getYJZL());
                        ps.add("entity.YJZLQT", obj.getYJZLQT());

                        ps.add("entity.ZYB", obj.getZYB());
                        ps.add("entity.ZYBGZ", obj.getZYBGZ());
                        ps.add("entity.ZYBCYNS", obj.getZYBCYNS());
                        ps.add("entity.DWFCZL", obj.getDWFCZL());
                        ps.add("entity.DWFCFH", obj.getDWFCFH());
                        ps.add("entity.DWFSZL", obj.getDWFSZL());
                        ps.add("entity.DWFSFH", obj.getDWFSFH());
                        ps.add("entity.DWWLZL", obj.getDWWLZL());
                        ps.add("entity.DWWLFH", obj.getDWWLFH());
                        ps.add("entity.DWHXZL", obj.getDWHXZL());
                        ps.add("entity.DWHXFH", obj.getDWHXFH());
                        ps.add("entity.DWQTZL", obj.getDWQTZL());
                        ps.add("entity.DWQTFH", obj.getDWQTFH());

                        ps.add("entity.KQKC", obj.getKQKC());
                        ps.add("entity.KQCL", obj.getKQCL());
                        ps.add("entity.KQYB", obj.getKQYB());
                        ps.add("entity.ZYSL", obj.getZYSL());
                        ps.add("entity.YYSL", obj.getYYSL());
                        ps.add("entity.ZYSLJZ", obj.getZYSLJZ());
                        ps.add("entity.YYSLJZ", obj.getYYSLJZ());
                        ps.add("entity.TINGLI", obj.getTINGLI());
                        ps.add("entity.YDGN", obj.getYDGN());

                        ps.add("entity.YANDI", obj.getYANDI());
                        ps.add("entity.YANDIYC", obj.getYANDIYC());
                        ps.add("entity.PIFU", obj.getPIFU());
                        ps.add("entity.PIFUQT", obj.getPIFUQT());
                        ps.add("entity.GONGMO", obj.getGONGMO());
                        ps.add("entity.GONGMOQT", obj.getGONGMOQT());
                        ps.add("entity.LBJ", obj.getLBJ());
                        ps.add("entity.LBJQT", obj.getLBJQT());
                        ps.add("entity.TZX", obj.getTZX());
                        ps.add("entity.HXY", obj.getHXY());
                        ps.add("entity.HXYYC", obj.getHXYYC());
                        ps.add("entity.LUOYIN", obj.getLUOYIN());
                        ps.add("entity.LUOYINQT", obj.getLUOYINQT());
                        ps.add("entity.XINLV", obj.getXINLV());
                        ps.add("entity.XINLVA", obj.getXINLVA());
                        ps.add("entity.ZAYIN", obj.getZAYIN());
                        ps.add("entity.ZAYINY", obj.getZAYINY());
                        ps.add("entity.YATONG", obj.getYATONG());
                        ps.add("entity.YATONGY", obj.getYATONGY());
                        ps.add("entity.BAOKUAI", obj.getBAOKUAI());
                        ps.add("entity.BAOKUAIY", obj.getBAOKUAIY());
                        ps.add("entity.GANDA", obj.getGANDA());
                        ps.add("entity.GANDAY", obj.getGANDAY());
                        ps.add("entity.PIDA", obj.getPIDA());
                        ps.add("entity.PIDAY", obj.getPIDAY());
                        ps.add("entity.YDXZY", obj.getYDXZY());
                        ps.add("entity.YDXZYY", obj.getYDXZYY());
                        ps.add("entity.XZSZ", obj.getXZSZ());
                        ps.add("entity.ZBDMBD", obj.getZBDMBD());
                        ps.add("entity.GMZZ", obj.getGMZZ());
                        ps.add("entity.GMZZQT", obj.getGMZZQT());
                        ps.add("entity.RUXIAN", obj.getRUXIAN());
                        ps.add("entity.RUXIANQT", obj.getRUXIANQT());
                        ps.add("entity.FKWY", obj.getFKWY());
                        ps.add("entity.FKWYYC", obj.getFKWYYC());
                        ps.add("entity.FKYD", obj.getFKYD());
                        ps.add("entity.FKYDYC", obj.getFKYDYC());
                        ps.add("entity.FKGJ", obj.getFKGJ());
                        ps.add("entity.FKGJYC", obj.getFKGJYC());
                        ps.add("entity.FKGT", obj.getFKGT());
                        ps.add("entity.FKGTYC", obj.getFKGTYC());
                        ps.add("entity.FKFJ", obj.getFKFJ());
                        ps.add("entity.FKFJYC", obj.getFKFJYC());
                        ps.add("entity.CTQT", obj.getCTQT());

                        ps.add("entity.FZXX", obj.getFZXX());
                        ps.add("entity.FZXXRH", obj.getFZXXRH());
                        ps.add("entity.FZXHDB", obj.getFZXHDB());
                        ps.add("entity.FZBXB", obj.getFZBXB());
                        ps.add("entity.FZXXB", obj.getFZXXB());
                        ps.add("entity.FZXCGQT", obj.getFZXCGQT());
                        ps.add("entity.FZNDB", obj.getFZNDB());
                        ps.add("entity.FZNT", obj.getFZNT());
                        ps.add("entity.FZNTT", obj.getFZNTT());
                        ps.add("entity.FZNQX", obj.getFZNQX());
                        ps.add("entity.FZNCGQT", obj.getFZNCGQT());
                        ps.add("entity.FZKFXT", obj.getFZKFXT());
                        ps.add("entity.FZTXBGAS", obj.getFZTXBGAS());
                        ps.add("entity.FZNWLBDB", obj.getFZNWLBDB());
                        ps.add("entity.FZDBQX", obj.getFZDBQX());
                        ps.add("entity.FZTHXHDB", obj.getFZTHXHDB());
                        ps.add("entity.FZYGBMKY", obj.getFZYGBMKY());
                        ps.add("entity.FZXQGBZAM", obj.getFZXQGBZAM());
                        ps.add("entity.FZXQGCZAM", obj.getFZXQGCZAM());
                        ps.add("entity.FZBDB", obj.getFZBDB());
                        ps.add("entity.FZZDHS", obj.getFZZDHS());
                        ps.add("entity.FZJHDHS", obj.getFZJHDHS());
                        ps.add("entity.FZXQJG", obj.getFZXQJG());
                        ps.add("entity.FZXNSD", obj.getFZXNSD());
                        ps.add("entity.FZXJND", obj.getFZXJND());
                        ps.add("entity.FZXNND", obj.getFZXNND());
                        ps.add("entity.FZZDGC", obj.getFZZDGC());
                        ps.add("entity.FZGYSZ", obj.getFZGYSZ());
                        ps.add("entity.FZXQDMD", obj.getFZXQDMD());
                        ps.add("entity.FZXQGMD", obj.getFZXQGMD());
                        ps.add("entity.FZXDT", obj.getFZXDT());
                        ps.add("entity.FZXDTYC", obj.getFZXDTYC());
                        ps.add("entity.FZXBXXP", obj.getFZXBXXP());
                        ps.add("entity.FZXBXXPYC", obj.getFZXBXXPYC());
                        ps.add("entity.FZBCHAO", obj.getFZBCHAO());
                        ps.add("entity.FZBCHAOYC", obj.getFZBCHAOYC());
                        ps.add("entity.FZQTBCHAO", obj.getFZQTBCHAO());
                        ps.add("entity.FZQTBCHAOYC", obj.getFZQTBCHAOYC());
                        ps.add("entity.FZGJTP", obj.getFZGJTP());
                        ps.add("entity.FZGJTPYC", obj.getFZGJTPYC());
                        ps.add("entity.FZQT", obj.getFZQT());

                        ps.add("entity.JKNXGJB", obj.getJKNXGJB());
                        ps.add("entity.JKNXGJBQT", obj.getJKNXGJBQT());
                        ps.add("entity.JKSZJB", obj.getJKSZJB());
                        ps.add("entity.JKSZJBQT", obj.getJKSZJBQT());
                        ps.add("entity.JKXZJB", obj.getJKXZJB());
                        ps.add("entity.JKXZJBQT", obj.getJKXZJBQT());
                        ps.add("entity.JKYBJB", obj.getJKYBJB());
                        ps.add("entity.JKYBJBQT", obj.getJKYBJBQT());
                        ps.add("entity.JKSJXTJB", obj.getJKSJXTJB());
                        ps.add("entity.JKSJXTJBQT", obj.getJKSJXTJBQT());
                        ps.add("entity.JKQTXTJB", obj.getJKQTXTJB());
                        ps.add("entity.JKQTXTJBQT", obj.getJKQTXTJBQT());

                        ps.add("entity.ZYS", obj.getZYS());
                        ps.add("entity.ZYRYRQ1", obj.getZYRYRQ1());
                        ps.add("entity.ZYCYRQ1", obj.getZYCYRQ1());
                        ps.add("entity.ZYYY1", obj.getZYYY1());
                        ps.add("entity.ZYYLJG1", obj.getZYYLJG1());
                        ps.add("entity.ZYBAH1", obj.getZYBAH1());
                        ps.add("entity.ZYRYRQ2", obj.getZYRYRQ2());
                        ps.add("entity.ZYCYRQ2", obj.getZYCYRQ2());
                        ps.add("entity.ZYYY2", obj.getZYYY2());
                        ps.add("entity.ZYYLJG2", obj.getZYYLJG2());
                        ps.add("entity.ZYBAH2", obj.getZYBAH2());
                        ps.add("entity.JTBCS", obj.getJTBCS());
                        ps.add("entity.JTJCRQ1", obj.getJTJCRQ1());
                        ps.add("entity.JTCCRQ1", obj.getJTCCRQ1());
                        ps.add("entity.JTYY1", obj.getJTYY1());
                        ps.add("entity.JTYLJG1", obj.getJTYLJG1());
                        ps.add("entity.JTBAH1", obj.getJTBAH1());
                        ps.add("entity.JTJCRQ2", obj.getJTJCRQ2());
                        ps.add("entity.JTCCRQ2", obj.getJTCCRQ2());
                        ps.add("entity.JTYY2", obj.getJTYY2());
                        ps.add("entity.JTYLJG2", obj.getJTYLJG2());
                        ps.add("entity.JTBAH2", obj.getJTBAH2());

                        ps.add("entity.ZYYYQK", obj.getZYYYQK());
                        ps.add("entity.YPMC1", obj.getYPMC1());
                        ps.add("entity.YPYL1", obj.getYPYL1());
                        ps.add("entity.YYSJ1", obj.getYYSJ1());
                        ps.add("entity.YPYF1", obj.getYPYF1());
                        ps.add("entity.FYYCX1", obj.getFYYCX1());
                        ps.add("entity.YPMC2", obj.getYPMC2());
                        ps.add("entity.YPYL2", obj.getYPYL2());
                        ps.add("entity.YYSJ2", obj.getYYSJ2());
                        ps.add("entity.YPYF2", obj.getYPYF2());
                        ps.add("entity.FYYCX2", obj.getFYYCX2());
                        ps.add("entity.YPMC3", obj.getYPMC3());
                        ps.add("entity.YPYL3", obj.getYPYL3());
                        ps.add("entity.YYSJ3", obj.getYYSJ3());
                        ps.add("entity.YPYF3", obj.getYPYF3());
                        ps.add("entity.FYYCX3", obj.getFYYCX3());
                        ps.add("entity.YPMC4", obj.getYPMC4());
                        ps.add("entity.YPYL4", obj.getYPYL4());
                        ps.add("entity.YYSJ4", obj.getYYSJ4());
                        ps.add("entity.YPYF4", obj.getYPYF4());
                        ps.add("entity.FYYCX4", obj.getFYYCX4());
                        ps.add("entity.YPMC5", obj.getYPMC5());
                        ps.add("entity.YPYL5", obj.getYPYL5());
                        ps.add("entity.YYSJ5", obj.getYYSJ5());
                        ps.add("entity.YPYF5", obj.getYPYF5());
                        ps.add("entity.FYYCX5", obj.getFYYCX5());
                        ps.add("entity.YPMC6", obj.getYPMC6());
                        ps.add("entity.YPYL6", obj.getYPYL6());
                        ps.add("entity.YYSJ6", obj.getYYSJ6());
                        ps.add("entity.YPYF6", obj.getYPYF6());
                        ps.add("entity.FYYCX6", obj.getFYYCX6());

                        ps.add("entity.FMYJZ", obj.getFMYJZ());
                        ps.add("entity.YMMC1", obj.getYMMC1());
                        ps.add("entity.JZRQ1", obj.getJZRQ1());
                        ps.add("entity.JZJG1", obj.getJZJG1());
                        ps.add("entity.YMMC2", obj.getYMMC2());
                        ps.add("entity.JZRQ2", obj.getJZRQ2());
                        ps.add("entity.JZJG2", obj.getJZJG2());
                        ps.add("entity.YMMC3", obj.getYMMC3());
                        ps.add("entity.JZRQ3", obj.getJZRQ3());
                        ps.add("entity.JZJG3", obj.getJZJG3());

                        ps.add("entity.JKPJ", obj.getJKPJ());
                        ps.add("entity.JKPJ1", obj.getJKPJ1());
                        ps.add("entity.JKPJ2", obj.getJKPJ2());
                        ps.add("entity.JKPJ3", obj.getJKPJ3());
                        ps.add("entity.JKPJ4", obj.getJKPJ4());
                        ps.add("entity.JKZD", obj.getJKZD());
                        ps.add("entity.WXYSKZ", obj.getWXYSKZ());
                        ps.add("entity.WXYSJTZ", obj.getWXYSJTZ());
                        ps.add("entity.WXYSYM", obj.getWXYSYM());
                        ps.add("entity.WXYSKZQT", obj.getWXYSKZQT());

                        ps.add("entity.QZR", obj.getQZR());
                        ps.add("entity.JMQM", obj.getJMQM());
                        ps.add("entity.FKRQM", obj.getFKRQM());
                        ps.add("entity.FKSJ", obj.getFKSJ());

//                        if (!StringUtils.isEmpty(picname)) {
//                            try {
//                                ps.put("img", new File(Environment.getExternalStorageDirectory() + "/" + picname + ".jpg"));
//                            } catch (FileNotFoundException e) {
//                                e.printStackTrace();
//                            }
//                        }
                        if (getIntent().getStringExtra("type").equals("edit")) {
                            ps.add("entity.SFJLH", obj.getSFJLH());
                            url = HttpUrl.EditJktjb;
                        } else {
                            url = HttpUrl.AddJktjb;
                        }
                        ps.add("token", SharedPreferencesUtils.getParam(con, "token", "").toString());
                        ps.add("type", "2");

                        ps.add("pz_record_id", pz_record_id.getText().toString());
                        ps.add("jmqm_record_id", jmqm_record_id.getText().toString());
                        ps.add("ysqm_record_id", jmqm_record_id.getText().toString());
                        ps.add("entity.UPDATETIME", obj.getUPDATETIME());
                        UserClient.get(url, ps, new AsyncHttpResponseHandler() {
                            @Override
                            public void onSuccess(int statusCode, Header[] headers, byte[] response) {
                                String content = new String(response);
                                Log.i("个人基本信息保存", content);
                                RetMsg ret = JSON.parseObject(content, RetMsg.class);
                                if (ret.getCode().equals("200")) {
                                    MyToastUtil.ShowToast(con, "保存成功");
                                }else{
                                    MyToastUtil.ShowToast(con, ret.getInfo());
                                }
                                finish();
                            }

                            @Override
                            public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {
                                MyToastUtil.ShowToast(con, "保存失败");
                            }
                        });
                    } else {  //////网络不存在
                        MyToastUtil.ShowToast(con, "网络连接失败");
                    }
                }
            }
        });

        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                new SweetAlertDialog(con, SweetAlertDialog.WARNING_TYPE)
                        .setTitleText("确定返回")
                        .setContentText("确定不保存返回上个页面?")
                        .setCancelText("取消")
                        .setConfirmText("确定")
                        .showCancelButton(true)
                        .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {
                            @Override
                            public void onClick(SweetAlertDialog sweetAlertDialog) {
                                finish();
                            }
                        })
                        .show();
            }
        });
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (data == null) {

        } else if (requestCode == 1) {
            returnJumin = (JuMin) data.getExtras().getSerializable("j");
            getObject();
        }else if (requestCode == 8) {
            String record_id = (String) data.getExtras().getString("record_id");
            ysqm_record_id.setText(record_id);
            byte[] bis = data.getByteArrayExtra("bitmap");
            Bitmap bmp = BitmapFactory.decodeByteArray(bis, 0, bis.length);
            Bitmap bb = CreateBitmap.zoomImg(bmp, 1, 1);
            sfysqm.setImageBitmap(bb);
            sfysqmpic = CreateBitmap.saveMyBitmap(bb);
        }else if (requestCode == 9) {
            String record_id = (String) data.getExtras().getString("record_id");
            jmqm_record_id.setText(record_id);
            byte[] bis = data.getByteArrayExtra("bitmap");
            Bitmap bmp = BitmapFactory.decodeByteArray(bis, 0, bis.length);
            Bitmap bb = CreateBitmap.zoomImg(bmp, 1, 1);
            brqm.setImageBitmap(bb);
            brqmpic = CreateBitmap.saveMyBitmap(bb);
        }else if(requestCode == 119){
            String img_record_id = (String) data.getExtras().getString("img_record_id");
            pz_record_id.setText(img_record_id);
            pzChange = true;
            byte[] bis = data.getByteArrayExtra("bitmap");
            Bitmap bmp = BitmapFactory.decodeByteArray(bis, 0, bis.length);
            Bitmap bb = CreateBitmap.zoomImg(bmp, 1, 1);
            xcqm.setImageBitmap(bb);
        }
    }

    public void getObject() {
        RequestParams ps = new RequestParams();
        ps.add("token", SharedPreferencesUtils.getParam(con, "token", "").toString());
        ps.add("type", "2");
        ps.add("CARDNUM", returnJumin.getCARDNUM());
        UserClient.get(HttpUrl.GetJktjbGrjbxx, ps, new AsyncHttpResponseHandler() {
            @Override
            public void onSuccess(int statusCode, Header[] headers, byte[] response) {
                String content = new String(response);
                RetMsg ret = JSON.parseObject(content, RetMsg.class);
                if (ret.getCode().equals("200")) {
                    if (StringUtils.isEmpty(ret.getOtherParams())) {//other是空的
                        JSONObject j = JSON.parseObject(ret.getRd());
                        obj = new Jktjb();
                        obj.setJKDAH(j.getString("JKDAH"));
                        obj.setXINGMING(j.getString("XINGMING"));
                        obj.setCARDNUM(j.getString("CARDNUM"));

                        XINGMING.setText(j.getString("XINGMING"));
                        JKDAH.setText(j.getString("JKDAH"));
                        isadd = true;
                    } else {
                    /*    obj = JSON.parseObject(ret.getRd(), Jktjb.class);
                        isadd = false;
                        init();*/
                    }
                } else {
                    new SweetAlertDialog(con, SweetAlertDialog.ERROR_TYPE)
                            .setTitleText("提示")
                            .setContentText(ret.getInfo())
                            .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {
                                @Override
                                public void onClick(SweetAlertDialog sweetAlertDialog) {
                                    finish();
                                }
                            }).show();
                }

            }

            @Override
            public void onFinish() {
                super.onFinish();
            }

            @Override
            public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {

                isadd = true;
                obj = new Jktjb();
            }
        });
    }

    //初始化基础信息及症状部分
    private void initTjbZZ() {
        //症状
        zhengzhuang = (MultiLineChooseLayout) findViewById(R.id.zhengzhuang);
        zhengzhuangdata.add("1无症状");
        zhengzhuangdata.add("2头痛");
        zhengzhuangdata.add("3头晕");
        zhengzhuangdata.add("4心悸");
        zhengzhuangdata.add("5胸闷");
        zhengzhuangdata.add("6胸痛");
        zhengzhuangdata.add("7慢性咳嗽");
        zhengzhuangdata.add("8咳痰");
        zhengzhuangdata.add("9呼吸困难");
        zhengzhuangdata.add("10多饮");
        zhengzhuangdata.add("11多尿");
        zhengzhuangdata.add("12体重下降");
        zhengzhuangdata.add("13乏力");
        zhengzhuangdata.add("14关节肿痛");
        zhengzhuangdata.add("15视力模糊");
        zhengzhuangdata.add("16手脚麻木");
        zhengzhuangdata.add("17尿急");
        zhengzhuangdata.add("18尿痛");
        zhengzhuangdata.add("19便秘");
        zhengzhuangdata.add("20腹泻");
        zhengzhuangdata.add("21恶心呕吐");
        zhengzhuangdata.add("22眼花");
        zhengzhuangdata.add("23耳鸣");
        zhengzhuangdata.add("24乳房胀痛");
        zhengzhuangdata.add("25其他");
        zhengzhuang.setList(zhengzhuangdata);
        if (obj != null && !StringUtils.isEmpty(obj.getZHENGZHUANG())) {
            if (obj.getZHENGZHUANG().contains("1"))
                zhengzhuang.setIndexItemSelected(0);
            if (obj.getZHENGZHUANG().contains("2"))
                zhengzhuang.setIndexItemSelected(1);
            if (obj.getZHENGZHUANG().contains("3"))
                zhengzhuang.setIndexItemSelected(2);
            if (obj.getZHENGZHUANG().contains("4"))
                zhengzhuang.setIndexItemSelected(3);
            if (obj.getZHENGZHUANG().contains("5"))
                zhengzhuang.setIndexItemSelected(4);
            if (obj.getZHENGZHUANG().contains("6"))
                zhengzhuang.setIndexItemSelected(5);
            if (obj.getZHENGZHUANG().contains("7"))
                zhengzhuang.setIndexItemSelected(6);
            if (obj.getZHENGZHUANG().contains("8"))
                zhengzhuang.setIndexItemSelected(7);
            if (obj.getZHENGZHUANG().contains("9"))
                zhengzhuang.setIndexItemSelected(8);
            if (obj.getZHENGZHUANG().contains("10"))
                zhengzhuang.setIndexItemSelected(9);
            if (obj.getZHENGZHUANG().contains("11"))
                zhengzhuang.setIndexItemSelected(10);
            if (obj.getZHENGZHUANG().contains("12"))
                zhengzhuang.setIndexItemSelected(11);
            if (obj.getZHENGZHUANG().contains("13"))
                zhengzhuang.setIndexItemSelected(12);
            if (obj.getZHENGZHUANG().contains("14"))
                zhengzhuang.setIndexItemSelected(13);
            if (obj.getZHENGZHUANG().contains("15"))
                zhengzhuang.setIndexItemSelected(14);
            if (obj.getZHENGZHUANG().contains("16"))
                zhengzhuang.setIndexItemSelected(15);
            if (obj.getZHENGZHUANG().contains("17"))
                zhengzhuang.setIndexItemSelected(16);
            if (obj.getZHENGZHUANG().contains("18"))
                zhengzhuang.setIndexItemSelected(17);
            if (obj.getZHENGZHUANG().contains("19"))
                zhengzhuang.setIndexItemSelected(18);
            if (obj.getZHENGZHUANG().contains("20"))
                zhengzhuang.setIndexItemSelected(19);
            if (obj.getZHENGZHUANG().contains("21"))
                zhengzhuang.setIndexItemSelected(20);
            if (obj.getZHENGZHUANG().contains("22"))
                zhengzhuang.setIndexItemSelected(21);
            if (obj.getZHENGZHUANG().contains("23"))
                zhengzhuang.setIndexItemSelected(22);
            if (obj.getZHENGZHUANG().contains("24"))
                zhengzhuang.setIndexItemSelected(23);
            if (obj.getZHENGZHUANG().contains("25"))
                zhengzhuang.setIndexItemSelected(24);
        }

        dahll = (LinearLayout) findViewById(R.id.dahll);
        JKDAH = (TextView) findViewById(R.id.dah);

        if (getIntent().getStringExtra("type").equals("edit")) {
            dahll.setVisibility(View.VISIBLE);
            if (obj != null && !StringUtils.isEmpty(obj.getJKDAH()))
                JKDAH.setText(obj.getJKDAH());
        }
        TJRQ = (TextView) findViewById(R.id.tjrq);
        TJRQ.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
                String now = sdf.format(new Date());
                customDatePicker = new CustomDatePicker(con, new CustomDatePicker.ResultHandler() {
                    @Override
                    public void handle(String time) { // 回调接口，获得选中的时间
                        TJRQ.setText(time.split(" ")[0]);
                    }
                }, "1900-01-01 00:00", now); // 初始化日期格式请用：yyyy-MM-dd HH:mm，否则不能正常运行
                customDatePicker.showSpecificTime(false); // 不显示时和分
                customDatePicker.setIsLoop(false); // 不允许循环滚动
                customDatePicker.show(now);
            }
        });
        if (obj != null && !StringUtils.isEmptyRq(obj.getSFRQ()))
            TJRQ.setText(obj.getSFRQ());

        ZZQT = (EditText) findViewById(R.id.ZZQT);
        if (obj != null && !StringUtils.isEmpty(obj.getZZQT()))
            ZZQT.setText(obj.getZZQT());
    }

    /**
     * 初始化一般状况部分UI
     */
    private void initYbzkUI() {
        TIWEN = (EditText) findViewById(R.id.TIWEN);
        if (obj != null && !StringUtils.isEmpty(obj.getTIWEN()))
            TIWEN.setText(obj.getTIWEN());
        MAILV = (EditText) findViewById(R.id.MAILV);
        if (obj != null && !StringUtils.isEmpty(obj.getMAILV()))
            MAILV.setText(obj.getMAILV());
        HXPL = (EditText) findViewById(R.id.HXPL);
        if (obj != null && !StringUtils.isEmpty(obj.getHXPL()))
            HXPL.setText(obj.getHXPL());
        ZXUEYA1 = (EditText) findViewById(R.id.ZXUEYA1);
        if (obj != null && !StringUtils.isEmpty(obj.getZXUEYA1()))
            ZXUEYA1.setText(obj.getZXUEYA1());
        ZXUEYA2 = (EditText) findViewById(R.id.ZXUEYA2);
        if (obj != null && !StringUtils.isEmpty(obj.getZXUEYA2()))
            ZXUEYA2.setText(obj.getZXUEYA2());
        YXUEYA1 = (EditText) findViewById(R.id.YXUEYA1);
        if (obj != null && !StringUtils.isEmpty(obj.getYXUEYA1()))
            YXUEYA1.setText(obj.getYXUEYA1());
        YXUEYA2 = (EditText) findViewById(R.id.YXUEYA2);
        if (obj != null && !StringUtils.isEmpty(obj.getYXUEYA2()))
            YXUEYA2.setText(obj.getYXUEYA2());
        SHENGAO = (EditText) findViewById(R.id.SHENGAO);
        if (obj != null && !StringUtils.isEmpty(obj.getSHENGAO()))
            SHENGAO.setText(obj.getSHENGAO());
        TIZHONG = (EditText) findViewById(R.id.TIZHONG);
        if (obj != null && !StringUtils.isEmpty(obj.getTIZHONG()))
            TIZHONG.setText(obj.getTIZHONG());
        YAOWEI = (EditText) findViewById(R.id.YAOWEI);
        if (obj != null && !StringUtils.isEmpty(obj.getYAOWEI()))
            YAOWEI.setText(obj.getYAOWEI());
        BMI = (EditText) findViewById(R.id.BMI);
        if (obj != null && !StringUtils.isEmpty(obj.getBMI()))
            BMI.setText(obj.getBMI());
        LNRRZGNPF = (EditText) findViewById(R.id.LNRRZGNPF);
        if (obj != null && !StringUtils.isEmpty(obj.getLNRRZGNPF()))
            LNRRZGNPF.setText(obj.getLNRRZGNPF());
        LNRQGZTPF = (EditText) findViewById(R.id.LNRQGZTPF);
        if (obj != null && !StringUtils.isEmpty(obj.getLNRQGZTPF()))
            LNRQGZTPF.setText(obj.getLNRQGZTPF());

        //老年人健康状态自我评估选择
        LNRJKZWPG = (RadioGroup) findViewById(R.id.LNRJKZWPG);
        if (obj != null && !StringUtils.isEmpty(obj.getLNRJKZWPG())) {
            switch (Integer.parseInt(null == obj.getLNRJKZWPG() ? "0" : obj.getLNRJKZWPG())) {
                case 1:
                    LNRJKZWPG.check(R.id.lnrjkzwpg_my);
                    break;
                case 2:
                    LNRJKZWPG.check(R.id.lnrjkzwpg_jbmy);
                    break;
                case 3:
                    LNRJKZWPG.check(R.id.lnrjkzwpg_sbqc);
                    break;
                case 4:
                    LNRJKZWPG.check(R.id.lnrjkzwpg_btmy);
                    break;
                case 5:
                    LNRJKZWPG.check(R.id.lnrjkzwpg_bmy);
                    break;
            }
        } else {
            LNRJKZWPG.check(R.id.lnrjkzwpg_my);
        }
        LNRJKZWPG.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.lnrjkzwpg_my == checkedId)
                    obj.setLNRJKZWPG("1");
                if (R.id.lnrjkzwpg_jbmy == checkedId)
                    obj.setLNRJKZWPG("2");
                if (R.id.lnrjkzwpg_sbqc == checkedId)
                    obj.setLNRJKZWPG("3");
                if (R.id.lnrjkzwpg_btmy == checkedId)
                    obj.setLNRJKZWPG("4");
                if (R.id.lnrjkzwpg_bmy == checkedId)
                    obj.setLNRJKZWPG("5");
            }
        });

        //老年人生活自理能力自我评估选择
        LNRSHZWPG = (RadioGroup) findViewById(R.id.LNRSHZWPG);
        if (obj != null && !StringUtils.isEmpty(obj.getLNRSHZWPG())) {
            switch (Integer.parseInt(null == obj.getLNRSHZWPG() ? "0" : obj.getLNRSHZWPG())) {
                case 1:
                    LNRSHZWPG.check(R.id.lnrshzwpg_kzl);
                    break;
                case 2:
                    LNRSHZWPG.check(R.id.lnrshzwpg_qdyl);
                    break;
                case 3:
                    LNRSHZWPG.check(R.id.lnrshzwpg_zdyl);
                    break;
                case 4:
                    LNRSHZWPG.check(R.id.lnrshzwpg_bnzl);
                    break;
            }
        } else {
            LNRSHZWPG.check(R.id.lnrshzwpg_kzl);
        }
        LNRSHZWPG.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.lnrshzwpg_kzl == checkedId)
                    obj.setLNRSHZWPG("1");
                if (R.id.lnrshzwpg_qdyl == checkedId)
                    obj.setLNRSHZWPG("2");
                if (R.id.lnrshzwpg_zdyl == checkedId)
                    obj.setLNRSHZWPG("3");
                if (R.id.lnrshzwpg_bnzl == checkedId)
                    obj.setLNRSHZWPG("4");
            }
        });

        //老年人认知功能选择
        LNRRZGN = (RadioGroup) findViewById(R.id.LNRRZGN);
        if (obj != null && !StringUtils.isEmpty(obj.getLNRRZGN())) {
            switch (Integer.parseInt(null == obj.getLNRRZGN() ? "0" : obj.getLNRRZGN())) {
                case 1:
                    LNRRZGN.check(R.id.lnrrzgn_yinx);
                    break;
                case 2:
                    LNRRZGN.check(R.id.lnrrzgn_yangx);
                    break;
            }
        } else {
            LNRRZGN.check(R.id.lnrrzgn_yinx);
        }
        LNRRZGN.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.lnrrzgn_yinx == checkedId)
                    obj.setLNRRZGN("1");
                if (R.id.lnrrzgn_yangx == checkedId)
                    obj.setLNRRZGN("2");
            }
        });

        //老年人认知功能选择
        LNRRZGN = (RadioGroup) findViewById(R.id.LNRRZGN);
        if (obj != null && !StringUtils.isEmpty(obj.getLNRRZGN())) {
            switch (Integer.parseInt(null == obj.getLNRRZGN() ? "0" : obj.getLNRRZGN())) {
                case 1:
                    LNRRZGN.check(R.id.lnrrzgn_yinx);
                    break;
                case 2:
                    LNRRZGN.check(R.id.lnrrzgn_yangx);
                    break;
            }
        } else {
            LNRRZGN.check(R.id.lnrrzgn_yinx);
        }
        LNRRZGN.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.lnrrzgn_yinx == checkedId)
                    obj.setLNRRZGN("1");
                if (R.id.lnrrzgn_yangx == checkedId)
                    obj.setLNRRZGN("2");
            }
        });

        //老年人情感状态选择
        LNRQGZT = (RadioGroup) findViewById(R.id.LNRQGZT);
        if (obj != null && !StringUtils.isEmpty(obj.getLNRQGZT())) {
            switch (Integer.parseInt(null == obj.getLNRQGZT() ? "0" : obj.getLNRQGZT())) {
                case 1:
                    LNRQGZT.check(R.id.lnrqgzt_yinx);
                    break;
                case 2:
                    LNRQGZT.check(R.id.lnrqgzt_yangx);
                    break;
            }
        } else {
            LNRQGZT.check(R.id.lnrqgzt_yinx);
        }
        LNRQGZT.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.lnrqgzt_yinx == checkedId)
                    obj.setLNRQGZT("1");
                if (R.id.lnrqgzt_yangx == checkedId)
                    obj.setLNRQGZT("2");
            }
        });

        //签字人类型
        qzr = (RadioGroup) findViewById(R.id.qzr);
        if (obj != null && !StringUtils.isEmpty(obj.getQZR())) {
            switch (Integer.parseInt(null == obj.getQZR() ? "0" : obj.getQZR())) {
                case 1:
                    qzr.check(R.id.qzr_br);
                    break;
                case 2:
                    qzr.check(R.id.qzr_js);
                    break;
            }
        } else {
            //qzr.check(R.id.qzr_br);
        }
        qzr.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.qzr_br == checkedId)
                    obj.setQZR("1");
                if (R.id.qzr_js == checkedId)
                    obj.setQZR("2");
            }
        });
        //签字
        jmqm = (EditText) findViewById(R.id.jmqm);
        if (obj != null && !StringUtils.isEmpty(obj.getJMQM()))
            jmqm.setText(obj.getJMQM());
        //反馈人
        fkr = (EditText) findViewById(R.id.fkr);
        if (obj != null && !StringUtils.isEmpty(obj.getFKRQM()))
            fkr.setText(obj.getFKRQM());
        //反馈日期
        fkrq = (TextView) findViewById(R.id.fkrq);
        fkrq.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
                String now = sdf.format(new Date());
                customDatePicker = new CustomDatePicker(con, new CustomDatePicker.ResultHandler() {
                    @Override
                    public void handle(String time) { // 回调接口，获得选中的时间
                        fkrq.setText(time.split(" ")[0]);
                    }
                }, "1900-01-01 00:00", now); // 初始化日期格式请用：yyyy-MM-dd HH:mm，否则不能正常运行
                customDatePicker.showSpecificTime(false); // 不显示时和分
                customDatePicker.setIsLoop(false); // 不允许循环滚动
                customDatePicker.show(now);
            }
        });
        if (obj != null && !StringUtils.isEmptyRq(obj.getFKSJ()))
            fkrq.setText(obj.getFKSJ());
    }

    /**
     * 初始化生活方式部分UI
     */
    private void initShfsUI() {

        TYDLSC = (EditText) findViewById(R.id.TYDLSC);
        if (obj != null && !StringUtils.isEmpty(obj.getTYDLSC()))
            TYDLSC.setText(obj.getTYDLSC());
        TYDLNS = (EditText) findViewById(R.id.TYDLNS);
        if (obj != null && !StringUtils.isEmpty(obj.getTYDLNS()))
            TYDLNS.setText(obj.getTYDLNS());
        TYDLFS = (EditText) findViewById(R.id.TYDLFS);
        if (obj != null && !StringUtils.isEmpty(obj.getTYDLFS()))
            TYDLFS.setText(obj.getTYDLFS());
        RXYL = (EditText) findViewById(R.id.RXYL);
        if (obj != null && !StringUtils.isEmpty(obj.getRXYL()))
            RXYL.setText(obj.getRXYL());
        KSXYNL = (EditText) findViewById(R.id.KSXYNL);
        if (obj != null && !StringUtils.isEmpty(obj.getKSXYNL()))
            KSXYNL.setText(obj.getKSXYNL());
        JYNL = (EditText) findViewById(R.id.JYNL);
        if (obj != null && !StringUtils.isEmpty(obj.getJYNL()))
            JYNL.setText(obj.getJYNL());
        RYJL = (EditText) findViewById(R.id.RYJL);
        if (obj != null && !StringUtils.isEmpty(obj.getRYJL()))
            RYJL.setText(obj.getRYJL());
        JJNL = (EditText) findViewById(R.id.JJNL);
        if (obj != null && !StringUtils.isEmpty(obj.getJJNL()))
            JJNL.setText(obj.getJJNL());
        KSYJNL = (EditText) findViewById(R.id.KSYJNL);
        if (obj != null && !StringUtils.isEmpty(obj.getKSYJNL()))
            KSYJNL.setText(obj.getKSYJNL());
        YJZLQT = (EditText) findViewById(R.id.YJZLQT);
        if (obj != null && !StringUtils.isEmpty(obj.getYJZLQT()))
            YJZLQT.setText(obj.getYJZLQT());

        ZYBGZ = (EditText) findViewById(R.id.ZYBGZ);
        if (obj != null && !StringUtils.isEmpty(obj.getZYBGZ()))
            ZYBGZ.setText(obj.getZYBGZ());
        ZYBCYNS = (EditText) findViewById(R.id.ZYBCYNS);
        if (obj != null && !StringUtils.isEmpty(obj.getZYBCYNS()))
            ZYBCYNS.setText(obj.getZYBCYNS());
        DWFCZL = (EditText) findViewById(R.id.DWFCZL);
        if (obj != null && !StringUtils.isEmpty(obj.getDWFCZL()))
            DWFCZL.setText(obj.getDWFCZL());
        DWFSZL = (EditText) findViewById(R.id.DWFSZL);
        if (obj != null && !StringUtils.isEmpty(obj.getDWFSZL()))
            DWFSZL.setText(obj.getDWFSZL());
        DWWLZL = (EditText) findViewById(R.id.DWWLZL);
        if (obj != null && !StringUtils.isEmpty(obj.getDWWLZL()))
            DWWLZL.setText(obj.getDWWLZL());
        DWHXZL = (EditText) findViewById(R.id.DWHXZL);
        if (obj != null && !StringUtils.isEmpty(obj.getDWHXZL()))
            DWHXZL.setText(obj.getDWHXZL());
        DWQTZL = (EditText) findViewById(R.id.DWQTZL);
        if (obj != null && !StringUtils.isEmpty(obj.getDWQTZL()))
            DWQTZL.setText(obj.getDWQTZL());


        //体育锻炼频率
        TYDLPL = (RadioGroup) findViewById(R.id.TYDLPL);
        if (obj != null && !StringUtils.isEmpty(obj.getTYDLPL())) {
            switch (Integer.parseInt(null == obj.getTYDLPL() ? "0" : obj.getTYDLPL())) {
                case 1:
                    TYDLPL.check(R.id.tydlpl_mt);
                    break;
                case 2:
                    TYDLPL.check(R.id.tydlpl_mzycys);
                    break;
                case 3:
                    TYDLPL.check(R.id.tydlpl_ouer);
                    break;
                case 4:
                    TYDLPL.check(R.id.tydlpl_bdl);
                    break;
            }
        } else {
            //TYDLPL.check(R.id.tydlpl_bdl);
        }
        TYDLPL.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.tydlpl_mt == checkedId)
                    obj.setTYDLPL("1");
                if (R.id.tydlpl_mzycys == checkedId)
                    obj.setTYDLPL("2");
                if (R.id.tydlpl_ouer == checkedId)
                    obj.setTYDLPL("3");
                if (R.id.tydlpl_bdl == checkedId)
                    obj.setTYDLPL("4");
            }
        });
        //吸烟状况
        XYZK = (RadioGroup) findViewById(R.id.XYZK);
        if (obj != null && !StringUtils.isEmpty(obj.getXYZK())) {
            switch (Integer.parseInt(null == obj.getXYZK() ? "0" : obj.getXYZK())) {
                case 1:
                    XYZK.check(R.id.xyzk_cbxy);
                    break;
                case 2:
                    XYZK.check(R.id.xyzk_yjy);
                    break;
                case 3:
                    XYZK.check(R.id.xyzk_xy);
                    break;
            }
        } else {
            //XYZK.check(R.id.xyzk_cbxy);
        }
        XYZK.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.xyzk_cbxy == checkedId)
                    obj.setXYZK("1");
                if (R.id.xyzk_yjy == checkedId)
                    obj.setXYZK("2");
                if (R.id.xyzk_xy == checkedId)
                    obj.setXYZK("3");
            }
        });
        //饮酒频率
        YJPL = (RadioGroup) findViewById(R.id.YJPL);
        if (obj != null && !StringUtils.isEmpty(obj.getYJPL())) {
            switch (Integer.parseInt(null == obj.getYJPL() ? "0" : obj.getYJPL())) {
                case 1:
                    YJPL.check(R.id.yjpl_cb);
                    break;
                case 2:
                    YJPL.check(R.id.yjpl_ouer);
                    break;
                case 3:
                    YJPL.check(R.id.yjpl_jc);
                    break;
                case 4:
                    YJPL.check(R.id.yjpl_mt);
                    break;
            }
        } else {
            //YJPL.check(R.id.yjpl_cb);
        }
        YJPL.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.yjpl_cb == checkedId)
                    obj.setYJPL("1");
                if (R.id.yjpl_ouer == checkedId)
                    obj.setYJPL("2");
                if (R.id.yjpl_jc == checkedId)
                    obj.setYJPL("3");
                if (R.id.yjpl_mt == checkedId)
                    obj.setYJPL("4");
            }
        });
        //是否戒酒
        SFJJ = (RadioGroup) findViewById(R.id.SFJJ);
        if (obj != null && !StringUtils.isEmpty(obj.getSFJJ())) {
            switch (Integer.parseInt(null == obj.getSFJJ() ? "0" : obj.getSFJJ())) {
                case 1:
                    SFJJ.check(R.id.sfjj_wjj);
                    break;
                case 2:
                    SFJJ.check(R.id.sfjj_yjj);
                    break;
            }
        } else {
            //SFJJ.check(R.id.sfjj_wjj);
        }
        SFJJ.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.sfjj_wjj == checkedId)
                    obj.setSFJJ("1");
                if (R.id.sfjj_yjj == checkedId)
                    obj.setSFJJ("2");
            }
        });
        //近一年内是否曾醉酒
        JNSFZJ = (RadioGroup) findViewById(R.id.JNSFZJ);
        if (obj != null && !StringUtils.isEmpty(obj.getJNSFZJ())) {
            switch (Integer.parseInt(null == obj.getJNSFZJ() ? "0" : obj.getJNSFZJ())) {
                case 1:
                    JNSFZJ.check(R.id.jnsfzj_shi);
                    break;
                case 2:
                    JNSFZJ.check(R.id.jnsfzj_fou);
                    break;
            }
        } else {
            //JNSFZJ.check(R.id.jnsfzj_fou);
        }
        JNSFZJ.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.jnsfzj_shi == checkedId)
                    obj.setJNSFZJ("1");
                if (R.id.jnsfzj_fou == checkedId)
                    obj.setJNSFZJ("2");
            }
        });
        //接触史
        ZYB = (RadioGroup) findViewById(R.id.ZYB);
        if (obj != null && !StringUtils.isEmpty(obj.getZYB())) {
            switch (Integer.parseInt(null == obj.getZYB() ? "0" : obj.getZYB())) {
                case 1:
                    ZYB.check(R.id.zyb_wu);
                    break;
                case 2:
                    ZYB.check(R.id.zyb_you);
                    break;
            }
        } else {
            //ZYB.check(R.id.zyb_wu);
        }
        ZYB.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.zyb_wu == checkedId)
                    obj.setZYB("1");
                if (R.id.zyb_you == checkedId)
                    obj.setZYB("2");
            }
        });
        //毒物种类-粉尘-防护措施
        DWFCFH = (RadioGroup) findViewById(R.id.DWFCFH);
        if (obj != null && !StringUtils.isEmpty(obj.getDWFCFH())) {
            switch (Integer.parseInt(null == obj.getDWFCFH() ? "0" : obj.getDWFCFH())) {
                case 1:
                    DWFCFH.check(R.id.dwfcfh_wu);
                    break;
                case 2:
                    DWFCFH.check(R.id.dwfcfh_you);
                    break;
            }
        } else {
            //DWFCFH.check(R.id.dwfcfh_wu);
        }
        DWFCFH.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.dwfcfh_wu == checkedId)
                    obj.setDWFCFH("1");
                if (R.id.dwfcfh_you == checkedId)
                    obj.setDWFCFH("2");
            }
        });
        //毒物种类-放射物质-防护措施
        DWFSFH = (RadioGroup) findViewById(R.id.DWFSFH);
        if (obj != null && !StringUtils.isEmpty(obj.getDWFSFH())) {
            switch (Integer.parseInt(null == obj.getDWFSFH() ? "0" : obj.getDWFSFH())) {
                case 1:
                    DWFSFH.check(R.id.dwfsfh_wu);
                    break;
                case 2:
                    DWFSFH.check(R.id.dwfsfh_you);
                    break;
            }
        } else {
            //DWFSFH.check(R.id.dwfsfh_wu);
        }
        DWFSFH.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.dwfsfh_wu == checkedId)
                    obj.setDWFSFH("1");
                if (R.id.dwfsfh_you == checkedId)
                    obj.setDWFSFH("2");
            }
        });
        //毒物种类-物理因素-防护措施
        DWWLFH = (RadioGroup) findViewById(R.id.DWWLFH);
        if (obj != null && !StringUtils.isEmpty(obj.getDWWLFH())) {
            switch (Integer.parseInt(null == obj.getDWWLFH() ? "0" : obj.getDWWLFH())) {
                case 1:
                    DWWLFH.check(R.id.dwwlfh_wu);
                    break;
                case 2:
                    DWWLFH.check(R.id.dwwlfh_you);
                    break;
            }
        } else {
            //DWWLFH.check(R.id.dwwlfh_wu);
        }
        DWWLFH.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.dwwlfh_wu == checkedId)
                    obj.setDWWLFH("1");
                if (R.id.dwwlfh_you == checkedId)
                    obj.setDWWLFH("2");
            }
        });
        //毒物种类-化学物质-防护措施
        DWHXFH = (RadioGroup) findViewById(R.id.DWHXFH);
        if (obj != null && !StringUtils.isEmpty(obj.getDWHXFH())) {
            switch (Integer.parseInt(null == obj.getDWHXFH() ? "0" : obj.getDWHXFH())) {
                case 1:
                    DWHXFH.check(R.id.dwhxfh_wu);
                    break;
                case 2:
                    DWHXFH.check(R.id.dwhxfh_you);
                    break;
            }
        } else {
            //DWHXFH.check(R.id.dwhxfh_wu);
        }
        DWHXFH.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.dwhxfh_wu == checkedId)
                    obj.setDWHXFH("1");
                if (R.id.dwhxfh_you == checkedId)
                    obj.setDWHXFH("2");
            }
        });
        //毒物种类-其他-防护措施
        DWQTFH = (RadioGroup) findViewById(R.id.DWQTFH);
        if (obj != null && !StringUtils.isEmpty(obj.getDWQTFH())) {
            switch (Integer.parseInt(null == obj.getDWQTFH() ? "0" : obj.getDWQTFH())) {
                case 1:
                    DWQTFH.check(R.id.dwqtfh_wu);
                    break;
                case 2:
                    DWQTFH.check(R.id.dwqtfh_you);
                    break;
            }
        } else {
            //DWQTFH.check(R.id.dwqtfh_wu);
        }
        DWQTFH.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.dwqtfh_wu == checkedId)
                    obj.setDWQTFH("1");
                if (R.id.dwqtfh_you == checkedId)
                    obj.setDWQTFH("2");
            }
        });
        //饮食习惯
        YSXG = (MultiLineChooseLayout) findViewById(R.id.YSXG);
        ysxgdata.add("荤素均衡");
        ysxgdata.add("荤食为主");
        ysxgdata.add("素食为主");
        ysxgdata.add("嗜盐");
        ysxgdata.add("嗜油");
        ysxgdata.add("嗜糖");
        YSXG.setList(ysxgdata);
        if (obj != null && !StringUtils.isEmpty(obj.getYSXG())) {
            if (obj.getYSXG().contains("1"))
                YSXG.setIndexItemSelected(0);
            if (obj.getYSXG().contains("2"))
                YSXG.setIndexItemSelected(1);
            if (obj.getYSXG().contains("3"))
                YSXG.setIndexItemSelected(2);
            if (obj.getYSXG().contains("4"))
                YSXG.setIndexItemSelected(3);
            if (obj.getYSXG().contains("5"))
                YSXG.setIndexItemSelected(4);
            if (obj.getYSXG().contains("6"))
                YSXG.setIndexItemSelected(5);
        }
        //饮酒种类
        YJZL = (MultiLineChooseLayout) findViewById(R.id.YJZL);
        yjzldata.add("白酒");
        yjzldata.add("啤酒");
        yjzldata.add("红酒");
        yjzldata.add("黄酒");
        yjzldata.add("其他");
        YJZL.setList(yjzldata);
        if (obj != null && !StringUtils.isEmpty(obj.getYJZL())) {
            if (obj.getYJZL().contains("1"))
                YJZL.setIndexItemSelected(0);
            if (obj.getYJZL().contains("2"))
                YJZL.setIndexItemSelected(1);
            if (obj.getYJZL().contains("3"))
                YJZL.setIndexItemSelected(2);
            if (obj.getYJZL().contains("4"))
                YJZL.setIndexItemSelected(3);
            if (obj.getYJZL().contains("5"))
                YJZL.setIndexItemSelected(4);
        }
    }

    private void initZqgnUI() {
        ZYSL = (EditText) findViewById(R.id.ZYSL);
        if (obj != null && !StringUtils.isEmpty(obj.getZYSL()))
            ZYSL.setText(obj.getZYSL());
        YYSL = (EditText) findViewById(R.id.YYSL);
        if (obj != null && !StringUtils.isEmpty(obj.getYYSL()))
            YYSL.setText(obj.getYYSL());
        ZYSLJZ = (EditText) findViewById(R.id.ZYSLJZ);
        if (obj != null && !StringUtils.isEmpty(obj.getZYSLJZ()))
            ZYSLJZ.setText(obj.getZYSLJZ());
        YYSLJZ = (EditText) findViewById(R.id.YYSLJZ);
        if (obj != null && !StringUtils.isEmpty(obj.getYYSLJZ()))
            YYSLJZ.setText(obj.getYYSLJZ());
        //口腔口唇
        KQKC = (RadioGroup) findViewById(R.id.KQKC);
        if (obj != null && !StringUtils.isEmpty(obj.getKQKC())) {
            switch (Integer.parseInt(null == obj.getKQKC() ? "0" : obj.getKQKC())) {
                case 1:
                    KQKC.check(R.id.kqkc_hr);
                    break;
                case 2:
                    KQKC.check(R.id.kqkc_cb);
                    break;
                case 3:
                    KQKC.check(R.id.kqkc_fg);
                    break;
                case 4:
                    KQKC.check(R.id.kqkc_jl);
                    break;
                case 5:
                    KQKC.check(R.id.kqkc_pz);
                    break;
            }
        } else {
            KQKC.check(R.id.kqkc_hr);
        }
        KQKC.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.kqkc_hr == checkedId)
                    obj.setKQKC("1");
                if (R.id.kqkc_cb == checkedId)
                    obj.setKQKC("2");
                if (R.id.kqkc_fg == checkedId)
                    obj.setKQKC("3");
                if (R.id.kqkc_jl == checkedId)
                    obj.setKQKC("4");
                if (R.id.kqkc_pz == checkedId)
                    obj.setKQKC("5");
            }
        });
        //口腔齿列
        KQCL = (RadioGroup) findViewById(R.id.KQCL);
        if (obj != null && !StringUtils.isEmpty(obj.getKQCL())) {
            switch (Integer.parseInt(null == obj.getKQCL() ? "0" : obj.getKQCL())) {
                case 1:
                    KQCL.check(R.id.kqcl_zc);
                    break;
                case 2:
                    KQCL.check(R.id.kqcl_qc);
                    break;
                case 3:
                    KQCL.check(R.id.kqcl_quc);
                    break;
                case 4:
                    KQCL.check(R.id.kqcl_yc);
                    break;
            }
        } else {
            KQCL.check(R.id.kqcl_zc);
        }
        KQCL.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.kqcl_zc == checkedId)
                    obj.setKQCL("1");
                if (R.id.kqcl_qc == checkedId)
                    obj.setKQCL("2");
                if (R.id.kqcl_quc == checkedId)
                    obj.setKQCL("3");
                if (R.id.kqcl_yc == checkedId)
                    obj.setKQCL("4");
            }
        });
        //口腔咽部
        KQYB = (RadioGroup) findViewById(R.id.KQYB);
        if (obj != null && !StringUtils.isEmpty(obj.getKQYB())) {
            switch (Integer.parseInt(null == obj.getKQYB() ? "0" : obj.getKQYB())) {
                case 1:
                    KQYB.check(R.id.kqyb_wcx);
                    break;
                case 2:
                    KQYB.check(R.id.kqyb_cx);
                    break;
                case 3:
                    KQYB.check(R.id.kqyb_lblpzs);
                    break;
            }
        } else {
            KQYB.check(R.id.kqyb_wcx);
        }
        KQYB.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.kqyb_wcx == checkedId)
                    obj.setKQYB("1");
                if (R.id.kqyb_cx == checkedId)
                    obj.setKQYB("2");
                if (R.id.kqyb_lblpzs == checkedId)
                    obj.setKQYB("3");
            }
        });
        //听力
        TINGLI = (RadioGroup) findViewById(R.id.TINGLI);
        if (obj != null && !StringUtils.isEmpty(obj.getTINGLI())) {
            switch (Integer.parseInt(null == obj.getTINGLI() ? "0" : obj.getTINGLI())) {
                case 1:
                    TINGLI.check(R.id.tingli_tj);
                    break;
                case 2:
                    TINGLI.check(R.id.tingli_tbq);
                    break;
            }
        } else {
            TINGLI.check(R.id.tingli_tj);
        }
        TINGLI.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.tingli_tj == checkedId)
                    obj.setTINGLI("1");
                if (R.id.tingli_tbq == checkedId)
                    obj.setTINGLI("2");
            }
        });
        //运动功能
        YDGN = (RadioGroup) findViewById(R.id.YDGN);
        if (obj != null && !StringUtils.isEmpty(obj.getYDGN())) {
            switch (Integer.parseInt(null == obj.getYDGN() ? "0" : obj.getYDGN())) {
                case 1:
                    YDGN.check(R.id.ydgn_kslwc);
                    break;
                case 2:
                    YDGN.check(R.id.ydgn_wfdlwc);
                    break;
            }
        } else {
            YDGN.check(R.id.ydgn_kslwc);
        }
        YDGN.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.ydgn_kslwc == checkedId)
                    obj.setYDGN("1");
                if (R.id.ydgn_wfdlwc == checkedId)
                    obj.setYDGN("2");
            }
        });
    }

    private void initChaTiUI() {
        YANDIYC = (EditText) findViewById(R.id.YANDIYC);
        if (obj != null && !StringUtils.isEmpty(obj.getYANDIYC()))
            YANDIYC.setText(obj.getYANDIYC());
        PIFUQT = (EditText) findViewById(R.id.PIFUQT);
        if (obj != null && !StringUtils.isEmpty(obj.getPIFUQT()))
            PIFUQT.setText(obj.getPIFUQT());
        GONGMOQT = (EditText) findViewById(R.id.GONGMOQT);
        if (obj != null && !StringUtils.isEmpty(obj.getGONGMOQT()))
            GONGMOQT.setText(obj.getGONGMOQT());
        LBJQT = (EditText) findViewById(R.id.LBJQT);
        if (obj != null && !StringUtils.isEmpty(obj.getLBJQT()))
            LBJQT.setText(obj.getLBJQT());
        HXYYC = (EditText) findViewById(R.id.HXYYC);
        if (obj != null && !StringUtils.isEmpty(obj.getHXYYC()))
            HXYYC.setText(obj.getHXYYC());
        LUOYINQT = (EditText) findViewById(R.id.LUOYINQT);
        if (obj != null && !StringUtils.isEmpty(obj.getLUOYINQT()))
            LUOYINQT.setText(obj.getLUOYINQT());
        XINLV = (EditText) findViewById(R.id.XINLV);
        if (obj != null && !StringUtils.isEmpty(obj.getXINLV()))
            XINLV.setText(obj.getXINLV());
        ZAYINY = (EditText) findViewById(R.id.ZAYINY);
        if (obj != null && !StringUtils.isEmpty(obj.getZAYINY()))
            ZAYINY.setText(obj.getZAYINY());
        YATONGY = (EditText) findViewById(R.id.YATONGY);
        if (obj != null && !StringUtils.isEmpty(obj.getYATONGY()))
            YATONGY.setText(obj.getYATONGY());
        BAOKUAIY = (EditText) findViewById(R.id.BAOKUAIY);
        if (obj != null && !StringUtils.isEmpty(obj.getBAOKUAIY()))
            BAOKUAIY.setText(obj.getBAOKUAIY());
        GANDAY = (EditText) findViewById(R.id.GANDAY);
        if (obj != null && !StringUtils.isEmpty(obj.getGANDAY()))
            GANDAY.setText(obj.getGANDAY());
        PIDAY = (EditText) findViewById(R.id.PIDAY);
        if (obj != null && !StringUtils.isEmpty(obj.getPIDAY()))
            PIDAY.setText(obj.getPIDAY());
        YDXZYY = (EditText) findViewById(R.id.YDXZYY);
        if (obj != null && !StringUtils.isEmpty(obj.getYDXZYY()))
            YDXZYY.setText(obj.getYDXZYY());
        GMZZQT = (EditText) findViewById(R.id.GMZZQT);
        if (obj != null && !StringUtils.isEmpty(obj.getGMZZQT()))
            GMZZQT.setText(obj.getGMZZQT());
        RUXIANQT = (EditText) findViewById(R.id.RUXIANQT);
        if (obj != null && !StringUtils.isEmpty(obj.getRUXIANQT()))
            RUXIANQT.setText(obj.getRUXIANQT());
        FKWYYC = (EditText) findViewById(R.id.FKWYYC);
        if (obj != null && !StringUtils.isEmpty(obj.getFKWYYC()))
            FKWYYC.setText(obj.getFKWYYC());
        FKYDYC = (EditText) findViewById(R.id.FKYDYC);
        if (obj != null && !StringUtils.isEmpty(obj.getFKYDYC()))
            FKYDYC.setText(obj.getFKYDYC());
        FKGJYC = (EditText) findViewById(R.id.FKGJYC);
        if (obj != null && !StringUtils.isEmpty(obj.getFKGJYC()))
            FKGJYC.setText(obj.getFKGJYC());
        FKGTYC = (EditText) findViewById(R.id.FKGTYC);
        if (obj != null && !StringUtils.isEmpty(obj.getFKGTYC()))
            FKGTYC.setText(obj.getFKGTYC());
        FKFJYC = (EditText) findViewById(R.id.FKFJYC);
        if (obj != null && !StringUtils.isEmpty(obj.getFKFJYC()))
            FKFJYC.setText(obj.getFKFJYC());
        CTQT = (EditText) findViewById(R.id.CTQT);
        if (obj != null && !StringUtils.isEmpty(obj.getCTQT()))
            CTQT.setText(obj.getCTQT());
        //眼底
        YANDI = (RadioGroup) findViewById(R.id.YANDI);
        if (obj != null && !StringUtils.isEmpty(obj.getYANDI())) {
            switch (Integer.parseInt(null == obj.getYANDI() ? "0" : obj.getYANDI())) {
                case 1:
                    YANDI.check(R.id.yandi_zc);
                    break;
                case 2:
                    YANDI.check(R.id.yandi_yc);
                    break;
            }
        } else {
            //YANDI.check(R.id.yandi_zc);
        }
        YANDI.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.yandi_zc == checkedId)
                    obj.setYANDI("1");
                if (R.id.yandi_yc == checkedId)
                    obj.setYANDI("2");
            }
        });
        //皮肤
        PIFU = (RadioGroup) findViewById(R.id.PIFU);
        if (obj != null && !StringUtils.isEmpty(obj.getPIFU())) {
            switch (Integer.parseInt(null == obj.getPIFU() ? "0" : obj.getPIFU())) {
                case 1:
                    PIFU.check(R.id.pifu_zc);
                    break;
                case 2:
                    PIFU.check(R.id.pifu_ch);
                    break;
                case 3:
                    PIFU.check(R.id.pifu_cb);
                    break;
                case 4:
                    PIFU.check(R.id.pifu_fg);
                    break;
                case 5:
                    PIFU.check(R.id.pifu_hr);
                    break;
                case 6:
                    PIFU.check(R.id.pifu_sscz);
                    break;
                case 7:
                    PIFU.check(R.id.pifu_qt);
                    break;
            }
        } else {
            PIFU.check(R.id.pifu_zc);
        }
        PIFU.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.pifu_zc == checkedId)
                    obj.setPIFU("1");
                if (R.id.pifu_ch == checkedId)
                    obj.setPIFU("2");
                if (R.id.pifu_cb == checkedId)
                    obj.setPIFU("3");
                if (R.id.pifu_fg == checkedId)
                    obj.setPIFU("4");
                if (R.id.pifu_hr == checkedId)
                    obj.setPIFU("5");
                if (R.id.pifu_sscz == checkedId)
                    obj.setPIFU("6");
                if (R.id.pifu_qt == checkedId)
                    obj.setPIFU("7");
            }
        });
        //巩     膜
        GONGMO = (RadioGroup) findViewById(R.id.GONGMO);
        if (obj != null && !StringUtils.isEmpty(obj.getGONGMO())) {
            switch (Integer.parseInt(null == obj.getGONGMO() ? "0" :obj.getGONGMO())) {
                case 1:
                    GONGMO.check(R.id.gongmo_zc);
                    break;
                case 2:
                    GONGMO.check(R.id.gongmo_hr);
                    break;
                case 3:
                    GONGMO.check(R.id.gongmo_cx);
                    break;
                case 4:
                    GONGMO.check(R.id.gongmo_qt);
                    break;
            }
        } else {
            GONGMO.check(R.id.gongmo_zc);
        }
        GONGMO.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.gongmo_zc == checkedId)
                    obj.setGONGMO("1");
                if (R.id.gongmo_hr == checkedId)
                    obj.setGONGMO("2");
                if (R.id.gongmo_cx == checkedId)
                    obj.setPIFU("3");
                if (R.id.gongmo_qt == checkedId)
                    obj.setPIFU("4");
            }
        });
        //淋巴结
        LBJ = (RadioGroup) findViewById(R.id.LBJ);
        if (obj != null && !StringUtils.isEmpty(obj.getLBJ())) {
            switch (Integer.parseInt(null == obj.getLBJ() ? "0" : obj.getLBJ())) {
                case 1:
                    LBJ.check(R.id.lbj_wcj);
                    break;
                case 2:
                    LBJ.check(R.id.lbj_sgs);
                    break;
                case 3:
                    LBJ.check(R.id.lbj_yw);
                    break;
                case 4:
                    LBJ.check(R.id.lbj_qt);
                    break;
            }
        } else {
            LBJ.check(R.id.lbj_wcj);
        }
        LBJ.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.lbj_wcj == checkedId)
                    obj.setLBJ("1");
                if (R.id.lbj_sgs == checkedId)
                    obj.setLBJ("2");
                if (R.id.lbj_yw == checkedId)
                    obj.setLBJ("3");
                if (R.id.lbj_qt == checkedId)
                    obj.setLBJ("4");
            }
        });
        //肺部-桶状胸
        TZX = (RadioGroup) findViewById(R.id.TZX);
        if (obj != null && !StringUtils.isEmpty(obj.getTZX())) {
            switch (Integer.parseInt(null == obj.getTZX() ? "0" : obj.getTZX())) {
                case 1:
                    TZX.check(R.id.tzx_fou);
                    break;
                case 2:
                    TZX.check(R.id.tzx_shi);
                    break;
            }
        } else {
            TZX.check(R.id.tzx_fou);
        }
        TZX.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.tzx_fou == checkedId)
                    obj.setTZX("1");
                if (R.id.tzx_shi == checkedId)
                    obj.setTZX("2");
            }
        });
        //呼吸音
        HXY = (RadioGroup) findViewById(R.id.HXY);
        if (obj != null && !StringUtils.isEmpty(obj.getHXY())) {
            switch (Integer.parseInt(null == obj.getHXY() ? "0" : obj.getHXY())) {
                case 1:
                    HXY.check(R.id.hxy_zc);
                    break;
                case 2:
                    HXY.check(R.id.hxy_yc);
                    break;
            }
        } else {
            HXY.check(R.id.hxy_zc);
        }
        HXY.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.hxy_zc == checkedId)
                    obj.setHXY("1");
                if (R.id.hxy_yc == checkedId)
                    obj.setHXY("2");
            }
        });
        //罗  音
        LUOYIN = (RadioGroup) findViewById(R.id.LUOYIN);
        if (obj != null && !StringUtils.isEmpty(obj.getLUOYIN())) {
            switch (Integer.parseInt(null == obj.getLUOYIN() ? "0" : obj.getLUOYIN())) {
                case 1:
                    LUOYIN.check(R.id.luoyin_wu);
                    break;
                case 2:
                    LUOYIN.check(R.id.luoyin_gly);
                    break;
                case 3:
                    LUOYIN.check(R.id.luoyin_sly);
                    break;
                case 4:
                    LUOYIN.check(R.id.luoyin_qt);
                    break;
            }
        } else {
            LUOYIN.check(R.id.luoyin_wu);
        }
        LUOYIN.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.luoyin_wu == checkedId)
                    obj.setLUOYIN("1");
                if (R.id.luoyin_gly == checkedId)
                    obj.setLUOYIN("2");
                if (R.id.luoyin_sly == checkedId)
                    obj.setLUOYIN("3");
                if (R.id.luoyin_qt == checkedId)
                    obj.setLUOYIN("4");
            }
        });
        //心律
        XINLVA = (RadioGroup) findViewById(R.id.XINLVA);
        if (obj != null && !StringUtils.isEmpty(obj.getXINLVA())) {
            switch (Integer.parseInt(null == obj.getXINLVA() ? "0" : obj.getXINLVA())) {
                case 1:
                    XINLVA.check(R.id.xinlva_qi);
                    break;
                case 2:
                    XINLVA.check(R.id.xinlva_bq);
                    break;
                case 3:
                    XINLVA.check(R.id.xinlva_jdbq);
                    break;
            }
        } else {
            XINLVA.check(R.id.xinlva_qi);
        }
        XINLVA.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.xinlva_qi == checkedId)
                    obj.setXINLVA("1");
                if (R.id.xinlva_bq == checkedId)
                    obj.setXINLVA("2");
                if (R.id.xinlva_jdbq == checkedId)
                    obj.setXINLVA("3");
            }
        });
        //杂音
        ZAYIN = (RadioGroup) findViewById(R.id.ZAYIN);
        if (obj != null && !StringUtils.isEmpty(obj.getZAYIN())) {
            switch (Integer.parseInt(null == obj.getZAYIN() ? "0" : obj.getZAYIN())) {
                case 1:
                    ZAYIN.check(R.id.zayin_wu);
                    break;
                case 2:
                    ZAYIN.check(R.id.zayin_you);
                    break;
            }
        } else {
            ZAYIN.check(R.id.zayin_wu);
        }
        ZAYIN.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.zayin_wu == checkedId)
                    obj.setZAYIN("1");
                if (R.id.zayin_you == checkedId)
                    obj.setZAYIN("2");
            }
        });
        //压痛
        YATONG = (RadioGroup) findViewById(R.id.YATONG);
        if (obj != null && !StringUtils.isEmpty(obj.getYATONG())) {
            switch (Integer.parseInt(null == obj.getYATONG() ? "0" : obj.getYATONG())) {
                case 1:
                    YATONG.check(R.id.yatong_wu);
                    break;
                case 2:
                    YATONG.check(R.id.yatong_you);
                    break;
            }
        } else {
            YATONG.check(R.id.yatong_wu);
        }
        YATONG.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.yatong_wu == checkedId)
                    obj.setYATONG("1");
                if (R.id.yatong_you == checkedId)
                    obj.setYATONG("2");
            }
        });
        //包块
        BAOKUAI = (RadioGroup) findViewById(R.id.BAOKUAI);
        if (obj != null && !StringUtils.isEmpty(obj.getBAOKUAI())) {
            switch (Integer.parseInt(null == obj.getBAOKUAI() ? "0" : obj.getBAOKUAI())) {
                case 1:
                    BAOKUAI.check(R.id.baokuai_wu);
                    break;
                case 2:
                    BAOKUAI.check(R.id.baokuai_you);
                    break;
            }
        } else {
            BAOKUAI.check(R.id.baokuai_wu);
        }
        BAOKUAI.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.baokuai_wu == checkedId)
                    obj.setBAOKUAI("1");
                if (R.id.baokuai_you == checkedId)
                    obj.setBAOKUAI("2");
            }
        });
        //肝大
        GANDA = (RadioGroup) findViewById(R.id.GANDA);
        if (obj != null && !StringUtils.isEmpty(obj.getGANDA())) {
            switch (Integer.parseInt(null == obj.getGANDA() ? "0" : obj.getGANDA())) {
                case 1:
                    GANDA.check(R.id.ganda_wu);
                    break;
                case 2:
                    GANDA.check(R.id.ganda_you);
                    break;
            }
        } else {
            GANDA.check(R.id.ganda_wu);
        }
        GANDA.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.ganda_wu == checkedId)
                    obj.setGANDA("1");
                if (R.id.ganda_you == checkedId)
                    obj.setGANDA("2");
            }
        });
        //脾大
        PIDA = (RadioGroup) findViewById(R.id.PIDA);
        if (obj != null && !StringUtils.isEmpty(obj.getPIDA())) {
            switch (Integer.parseInt(null == obj.getPIDA() ? "0" : obj.getPIDA())) {
                case 1:
                    PIDA.check(R.id.pida_wu);
                    break;
                case 2:
                    PIDA.check(R.id.pida_you);
                    break;
            }
        } else {
            PIDA.check(R.id.pida_wu);
        }
        PIDA.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.pida_wu == checkedId)
                    obj.setPIDA("1");
                if (R.id.pida_you == checkedId)
                    obj.setPIDA("2");
            }
        });
        //移动性浊音
        YDXZY = (RadioGroup) findViewById(R.id.YDXZY);
        if (obj != null && !StringUtils.isEmpty(obj.getYDXZY())) {
            switch (Integer.parseInt(null == obj.getYDXZY() ? "0" : obj.getYDXZY())) {
                case 1:
                    YDXZY.check(R.id.ydxzy_wu);
                    break;
                case 2:
                    YDXZY.check(R.id.ydxzy_you);
                    break;
            }
        } else {
            YDXZY.check(R.id.ydxzy_wu);
        }
        YDXZY.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.ydxzy_wu == checkedId)
                    obj.setYDXZY("1");
                if (R.id.ydxzy_you == checkedId)
                    obj.setYDXZY("2");
            }
        });
        //下肢水肿
        XZSZ = (RadioGroup) findViewById(R.id.XZSZ);
        if (obj != null && !StringUtils.isEmpty(obj.getXZSZ())) {
            switch (Integer.parseInt(null == obj.getXZSZ() ? "0" : obj.getXZSZ())) {
                case 1:
                    XZSZ.check(R.id.xzsz_wu);
                    break;
                case 2:
                    XZSZ.check(R.id.xzsz_dc);
                    break;
                case 3:
                    XZSZ.check(R.id.xzsz_scbdc);
                    break;
                case 4:
                    XZSZ.check(R.id.xzsz_scdc);
                    break;
            }
        } else {
            XZSZ.check(R.id.xzsz_wu);
        }
        XZSZ.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.xzsz_wu == checkedId)
                    obj.setXZSZ("1");
                if (R.id.xzsz_dc == checkedId)
                    obj.setXZSZ("2");
                if (R.id.xzsz_scbdc == checkedId)
                    obj.setXZSZ("3");
                if (R.id.xzsz_scdc == checkedId)
                    obj.setXZSZ("4");
            }
        });
        //足背动脉搏动
        ZBDMBD = (RadioGroup) findViewById(R.id.ZBDMBD);
        if (obj != null && !StringUtils.isEmpty(obj.getZBDMBD())) {
            switch (Integer.parseInt(null == obj.getZBDMBD() ? "0" : obj.getZBDMBD())) {
                case 1:
                    ZBDMBD.check(R.id.zbdmbd_wcj);
                    break;
                case 2:
                    ZBDMBD.check(R.id.zbdmbd_cjscdc);
                    break;
                case 3:
                    ZBDMBD.check(R.id.zbdmbd_cjzcr);
                    break;
                case 4:
                    ZBDMBD.check(R.id.zbdmbd_cjycr);
                    break;
            }
        } else {
            ZBDMBD.check(R.id.zbdmbd_cjscdc);
        }
        ZBDMBD.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.zbdmbd_wcj == checkedId)
                    obj.setZBDMBD("1");
                if (R.id.zbdmbd_cjscdc == checkedId)
                    obj.setZBDMBD("2");
                if (R.id.zbdmbd_cjzcr == checkedId)
                    obj.setZBDMBD("3");
                if (R.id.zbdmbd_cjycr == checkedId)
                    obj.setZBDMBD("4");
            }
        });
        //肛门指诊
        GMZZ = (RadioGroup) findViewById(R.id.GMZZ);
        if (obj != null && !StringUtils.isEmpty(obj.getGMZZ())) {
            switch (Integer.parseInt(null == obj.getGMZZ() ? "0" : obj.getGMZZ())) {
                case 1:
                    GMZZ.check(R.id.gmzz_wjyc);
                    break;
                case 2:
                    GMZZ.check(R.id.gmzz_ct);
                    break;
                case 3:
                    GMZZ.check(R.id.gmzz_bk);
                    break;
                case 4:
                    GMZZ.check(R.id.gmzz_qlxyc);
                    break;
                case 5:
                    GMZZ.check(R.id.gmzz_qt);
                    break;
            }
        } else {
            //GMZZ.check(R.id.gmzz_wjyc);
        }
        GMZZ.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.gmzz_wjyc == checkedId)
                    obj.setGMZZ("1");
                if (R.id.gmzz_ct == checkedId)
                    obj.setGMZZ("2");
                if (R.id.gmzz_bk == checkedId)
                    obj.setGMZZ("1");
                if (R.id.gmzz_qlxyc == checkedId)
                    obj.setGMZZ("2");
                if (R.id.gmzz_qt == checkedId)
                    obj.setGMZZ("1");
            }
        });
        //乳   腺
        RUXIAN = (RadioGroup) findViewById(R.id.RUXIAN);
        if (obj != null && !StringUtils.isEmpty(obj.getRUXIAN())) {
            switch (Integer.parseInt(null == obj.getRUXIAN() ? "0" : obj.getRUXIAN())) {
                case 1:
                    RUXIAN.check(R.id.ruxian_wjyc);
                    break;
                case 2:
                    RUXIAN.check(R.id.ruxian_rfqc);
                    break;
                case 3:
                    RUXIAN.check(R.id.ruxian_ycmr);
                    break;
                case 4:
                    RUXIAN.check(R.id.ruxian_rxbk);
                    break;
                case 5:
                    RUXIAN.check(R.id.ruxian_qt);
                    break;
            }
        } else {
            //RUXIAN.check(R.id.ruxian_wjyc);
        }
        RUXIAN.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.ruxian_wjyc == checkedId)
                    obj.setRUXIAN("1");
                if (R.id.ruxian_rfqc == checkedId)
                    obj.setRUXIAN("2");
                if (R.id.ruxian_ycmr == checkedId)
                    obj.setRUXIAN("3");
                if (R.id.ruxian_rxbk == checkedId)
                    obj.setRUXIAN("4");
                if (R.id.ruxian_qt == checkedId)
                    obj.setRUXIAN("5");
            }
        });
        //妇科-外阴
        FKWY = (RadioGroup) findViewById(R.id.FKWY);
        if (obj != null && !StringUtils.isEmpty(obj.getFKWY())) {
            switch (Integer.parseInt(null == obj.getFKWY() ? "0" : obj.getFKWY())) {
                case 1:
                    FKWY.check(R.id.fkwy_wjyc);
                    break;
                case 2:
                    FKWY.check(R.id.fkwy_yc);
                    break;
            }
        } else {
            //FKWY.check(R.id.fkwy_wjyc);
        }
        FKWY.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fkwy_wjyc == checkedId)
                    obj.setFKWY("1");
                if (R.id.fkwy_yc == checkedId)
                    obj.setFKWY("2");
            }
        });
        //妇科-阴道
        FKYD = (RadioGroup) findViewById(R.id.FKYD);
        if (obj != null && !StringUtils.isEmpty(obj.getFKYD())) {
            switch (Integer.parseInt(null == obj.getFKYD() ? "0" : obj.getFKYD())) {
                case 1:
                    FKYD.check(R.id.fkyd_yjyc);
                    break;
                case 2:
                    FKYD.check(R.id.fkyd_yc);
                    break;
            }
        } else {
            //FKYD.check(R.id.fkyd_yjyc);
        }
        FKYD.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fkyd_yjyc == checkedId)
                    obj.setFKYD("1");
                if (R.id.fkyd_yc == checkedId)
                    obj.setFKYD("2");
            }
        });
        //妇科-宫颈
        FKGJ = (RadioGroup) findViewById(R.id.FKGJ);
        if (obj != null && !StringUtils.isEmpty(obj.getFKGJ())) {
            switch (Integer.parseInt(null == obj.getFKGJ() ? "0" : obj.getFKGJ())) {
                case 1:
                    FKGJ.check(R.id.fkgj_wjyc);
                    break;
                case 2:
                    FKGJ.check(R.id.fkgj_yc);
                    break;
            }
        } else {
            //FKGJ.check(R.id.fkgj_wjyc);
        }
        FKGJ.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fkgj_wjyc == checkedId)
                    obj.setFKGJ("1");
                if (R.id.fkgj_yc == checkedId)
                    obj.setFKGJ("2");
            }
        });
        //妇科-宫体
        FKGT = (RadioGroup) findViewById(R.id.FKGT);
        if (obj != null && !StringUtils.isEmpty(obj.getFKGT())) {
            switch (Integer.parseInt(null == obj.getFKGT() ? "0" : obj.getFKGT())) {
                case 1:
                    FKGT.check(R.id.fkgt_wjyc);
                    break;
                case 2:
                    FKGT.check(R.id.fkgt_yc);
                    break;
            }
        } else {
            //FKGT.check(R.id.fkgt_wjyc);
        }
        FKGT.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fkgt_wjyc == checkedId)
                    obj.setFKGT("1");
                if (R.id.fkgt_yc == checkedId)
                    obj.setFKGT("2");
            }
        });
        //妇科-附件
        FKFJ = (RadioGroup) findViewById(R.id.FKFJ);
        if (obj != null && !StringUtils.isEmpty(obj.getFKFJ())) {
            switch (Integer.parseInt(null == obj.getFKFJ() ? "0" : obj.getFKFJ())) {
                case 1:
                    FKFJ.check(R.id.fkfj_wjyc);
                    break;
                case 2:
                    FKFJ.check(R.id.fkfj_yc);
                    break;
            }
        } else {
            //FKFJ.check(R.id.fkfj_wjyc);
        }
        FKFJ.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fkfj_wjyc == checkedId)
                    obj.setFKFJ("1");
                if (R.id.fkfj_yc == checkedId)
                    obj.setFKFJ("2");
            }
        });

    }

    private void initFzjcUI() {
        FZXX = (RadioGroup) findViewById(R.id.FZXX);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXX())) {
            switch (Integer.parseInt(null == obj.getFZXX() ? "0" : obj.getFZXX())) {
                case 1:
                    FZXX.check(R.id.xxa);
                    break;
                case 2:
                    FZXX.check(R.id.xxb);
                    break;
                case 3:
                    FZXX.check(R.id.xxo);
                    break;
                case 4:
                    FZXX.check(R.id.xxab);
                    break;
            }
        } else {
            //FZXX.check(R.id.xxa);
        }
        FZXX.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.xxa == checkedId)
                    obj.setFZXX("1");
                if (R.id.xxb == checkedId)
                    obj.setFZXX("2");
                if (R.id.xxo == checkedId)
                    obj.setFZXX("3");
                if (R.id.xxab == checkedId)
                    obj.setFZXX("4");
            }
        });
        //是否RH阴性
        FZXXRH = (RadioGroup) findViewById(R.id.FZXXRH);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXXRH())) {
            switch (Integer.parseInt(null == obj.getFZXXRH() || "".equals(obj.getFZXXRH())  || "QXZ".equals(obj.getFZXXRH()) ? "0" : obj.getFZXXRH())) {
                case 1:
                    FZXXRH.check(R.id.rh1);
                    break;
                case 2:
                    FZXXRH.check(R.id.rh2);
                    break;
                case 3:
                    FZXXRH.check(R.id.rh3);
                    break;

            }
        } else {
            //FZXXRH.check(R.id.rh1);
        }
        FZXXRH.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (checkedId == R.id.rh1)
                    obj.setFZXXRH("1");
                if (checkedId == R.id.rh2)
                    obj.setFZXXRH("2");
                if (checkedId == R.id.rh3)
                    obj.setFZXXRH("3");
            }
        });
        FZXHDB = (EditText) findViewById(R.id.FZXHDB);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXHDB()))
            FZXHDB.setText(obj.getFZXHDB());
        FZBXB = (EditText) findViewById(R.id.FZBXB);
        if (obj != null && !StringUtils.isEmpty(obj.getFZBXB()))
            FZBXB.setText(obj.getFZBXB());
        FZXXB = (EditText) findViewById(R.id.FZXXB);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXXB()))
            FZXXB.setText(obj.getFZXXB());
        FZXCGQT = (EditText) findViewById(R.id.FZXCGQT);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXCGQT()))
            FZXCGQT.setText(obj.getFZXCGQT());
        FZNDB = (EditText) findViewById(R.id.FZNDB);
        if (obj != null && !StringUtils.isEmpty(obj.getFZNDB()))
            FZNDB.setText(obj.getFZNDB());
        FZNT = (EditText) findViewById(R.id.FZNT);
        if (obj != null && !StringUtils.isEmpty(obj.getFZNT()))
            FZNT.setText(obj.getFZNT());
        FZNTT = (EditText) findViewById(R.id.FZNTT);
        if (obj != null && !StringUtils.isEmpty(obj.getFZNTT()))
            FZNTT.setText(obj.getFZNTT());
        FZNQX = (EditText) findViewById(R.id.FZNQX);
        if (obj != null && !StringUtils.isEmpty(obj.getFZNQX()))
            FZNQX.setText(obj.getFZNQX());
        FZNCGQT = (EditText) findViewById(R.id.FZNCGQT);
        if (obj != null && !StringUtils.isEmpty(obj.getFZNCGQT()))
            FZNCGQT.setText(obj.getFZNCGQT());
        FZKFXT = (EditText) findViewById(R.id.FZKFXT);
        if (obj != null && !StringUtils.isEmpty(obj.getFZKFXT()))
            FZKFXT.setText(obj.getFZKFXT());
        FZTXBGAS = (EditText) findViewById(R.id.FZTXBGAS);
        if (obj != null && !StringUtils.isEmpty(obj.getFZTXBGAS()))
            FZTXBGAS.setText(obj.getFZTXBGAS());
        FZNWLBDB = (EditText) findViewById(R.id.FZNWLBDB);
        if (obj != null && !StringUtils.isEmpty(obj.getFZNWLBDB()))
            FZNWLBDB.setText(obj.getFZNWLBDB());
        FZTHXHDB = (EditText) findViewById(R.id.FZTHXHDB);
        if (obj != null && !StringUtils.isEmpty(obj.getFZTHXHDB()))
            FZTHXHDB.setText(obj.getFZTHXHDB());

        FZXQGBZAM = (EditText) findViewById(R.id.FZXQGBZAM);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXQGBZAM()))
            FZXQGBZAM.setText(obj.getFZXQGBZAM());
        FZXQGCZAM = (EditText) findViewById(R.id.FZXQGCZAM);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXQGCZAM()))
            FZXQGCZAM.setText(obj.getFZXQGCZAM());
        FZBDB = (EditText) findViewById(R.id.FZBDB);
        if (obj != null && !StringUtils.isEmpty(obj.getFZBDB()))
            FZBDB.setText(obj.getFZBDB());
        FZZDHS = (EditText) findViewById(R.id.FZZDHS);
        if (obj != null && !StringUtils.isEmpty(obj.getFZZDHS()))
            FZZDHS.setText(obj.getFZZDHS());
        FZJHDHS = (EditText) findViewById(R.id.FZJHDHS);
        if (obj != null && !StringUtils.isEmpty(obj.getFZJHDHS()))
            FZJHDHS.setText(obj.getFZJHDHS());
        FZXQJG = (EditText) findViewById(R.id.FZXQJG);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXQJG()))
            FZXQJG.setText(obj.getFZXQJG());
        FZXNSD = (EditText) findViewById(R.id.FZXNSD);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXNSD()))
            FZXNSD.setText(obj.getFZXNSD());
        FZXJND = (EditText) findViewById(R.id.FZXJND);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXJND()))
            FZXJND.setText(obj.getFZXJND());
        FZXNND = (EditText) findViewById(R.id.FZXNND);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXNND()))
            FZXNND.setText(obj.getFZXNND());
        FZZDGC = (EditText) findViewById(R.id.FZZDGC);
        if (obj != null && !StringUtils.isEmpty(obj.getFZZDGC()))
            FZZDGC.setText(obj.getFZZDGC());
        FZGYSZ = (EditText) findViewById(R.id.FZGYSZ);
        if (obj != null && !StringUtils.isEmpty(obj.getFZGYSZ()))
            FZGYSZ.setText(obj.getFZGYSZ());
        FZXQDMD = (EditText) findViewById(R.id.FZXQDMD);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXQDMD()))
            FZXQDMD.setText(obj.getFZXQDMD());
        FZXQGMD = (EditText) findViewById(R.id.FZXQGMD);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXQGMD()))
            FZXQGMD.setText(obj.getFZXQGMD());
        FZXDTYC = (EditText) findViewById(R.id.FZXDTYC);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXDTYC()))
            FZXDTYC.setText(obj.getFZXDTYC());

        FZXBXXPYC = (EditText) findViewById(R.id.FZXBXXPYC);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXBXXPYC()))
            FZXBXXPYC.setText(obj.getFZXBXXPYC());
        FZBCHAOYC = (EditText) findViewById(R.id.FZBCHAOYC);
        if (obj != null && !StringUtils.isEmpty(obj.getFZBCHAOYC()))
            FZBCHAOYC.setText(obj.getFZBCHAOYC());
        FZQTBCHAOYC = (EditText) findViewById(R.id.FZQTBCHAOYC);
        if (obj != null && !StringUtils.isEmpty(obj.getFZQTBCHAOYC()))
            FZQTBCHAOYC.setText(obj.getFZQTBCHAOYC());
        FZGJTPYC = (EditText) findViewById(R.id.FZGJTPYC);
        if (obj != null && !StringUtils.isEmpty(obj.getFZGJTPYC()))
            FZGJTPYC.setText(obj.getFZGJTPYC());
        FZQT = (EditText) findViewById(R.id.FZQT);
        if (obj != null && !StringUtils.isEmpty(obj.getFZQT()))
            FZQT.setText(obj.getFZQT());

        //大便潜血
        FZDBQX = (RadioGroup) findViewById(R.id.FZDBQX);
        if (obj != null && !StringUtils.isEmpty(obj.getFZDBQX())) {
            switch (Integer.parseInt(null == obj.getFZDBQX() ? "0" : obj.getFZDBQX() )) {
                case 1:
                    FZDBQX.check(R.id.fzdbqx_yinxing);
                    break;
                case 2:
                    FZDBQX.check(R.id.fzdbqx_yangxing);
                    break;
            }
        } else {
            //FZDBQX.check(R.id.fzdbqx_yinxing);
        }
        FZDBQX.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fzdbqx_yinxing == checkedId)
                    obj.setFZDBQX("1");
                if (R.id.fzdbqx_yangxing == checkedId)
                    obj.setFZDBQX("2");
            }
        });
        //乙型肝炎表面抗原
        FZYGBMKY = (RadioGroup) findViewById(R.id.FZYGBMKY);
        if (obj != null && !StringUtils.isEmpty(obj.getFZYGBMKY())) {
            switch (Integer.parseInt(null == obj.getFZYGBMKY() ? "0" : obj.getFZYGBMKY())) {
                case 1:
                    FZYGBMKY.check(R.id.fzygbmky_yinxing);
                    break;
                case 2:
                    FZYGBMKY.check(R.id.fzygbmky_yangxing);
                    break;
            }
        } else {
            //FZYGBMKY.check(R.id.fzygbmky_yinxing);
        }
        FZYGBMKY.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fzygbmky_yinxing == checkedId)
                    obj.setFZYGBMKY("1");
                if (R.id.fzygbmky_yangxing == checkedId)
                    obj.setFZYGBMKY("2");
            }
        });
        //胸部X线片
        FZXBXXP = (RadioGroup) findViewById(R.id.FZXBXXP);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXBXXP())) {
            switch (Integer.parseInt(null == obj.getFZXBXXP() ? "0" : obj.getFZXBXXP())) {
                case 1:
                    FZXBXXP.check(R.id.fzxbxxp_zc);
                    break;
                case 2:
                    FZXBXXP.check(R.id.fzxbxxp_yc);
                    break;
            }
        } else {
            //FZXBXXP.check(R.id.fzxbxxp_zc);
        }
        FZXBXXP.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fzxbxxp_zc == checkedId)
                    obj.setFZXBXXP("1");
                if (R.id.fzxbxxp_yc == checkedId)
                    obj.setFZXBXXP("2");
            }
        });
        //腹部B超
        FZBCHAO = (RadioGroup) findViewById(R.id.FZBCHAO);
        if (obj != null && !StringUtils.isEmpty(obj.getFZBCHAO())) {
            switch (Integer.parseInt(null == obj.getFZBCHAO() ? "0" : obj.getFZBCHAO())) {
                case 1:
                    FZBCHAO.check(R.id.fzbchao_zc);
                    break;
                case 2:
                    FZBCHAO.check(R.id.fzbchao_yc);
                    break;
            }
        } else {
            //FZBCHAO.check(R.id.fzbchao_zc);
        }
        FZBCHAO.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fzbchao_zc == checkedId)
                    obj.setFZBCHAO("1");
                if (R.id.fzbchao_yc == checkedId)
                    obj.setFZBCHAO("2");
            }
        });
        //其他B超
        FZQTBCHAO = (RadioGroup) findViewById(R.id.FZQTBCHAO);
        if (obj != null && !StringUtils.isEmpty(obj.getFZQTBCHAO())) {
            switch (Integer.parseInt(null == obj.getFZQTBCHAO() ? "0" : obj.getFZQTBCHAO())) {
                case 1:
                    FZQTBCHAO.check(R.id.fzqtbchao_zc);
                    break;
                case 2:
                    FZQTBCHAO.check(R.id.fzqtbchao_yc);
                    break;
            }
        } else {
            //FZQTBCHAO.check(R.id.fzqtbchao_zc);
        }
        FZQTBCHAO.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fzqtbchao_zc == checkedId)
                    obj.setFZQTBCHAO("1");
                if (R.id.fzqtbchao_yc == checkedId)
                    obj.setFZQTBCHAO("2");
            }
        });
        //宫颈涂片
        FZGJTP = (RadioGroup) findViewById(R.id.FZGJTP);
        if (obj != null && !StringUtils.isEmpty(obj.getFZGJTP())) {
            switch (Integer.parseInt(null == obj.getFZGJTP() ? "0" : obj.getFZGJTP())) {
                case 1:
                    FZGJTP.check(R.id.fzgjtp_zc);
                    break;
                case 2:
                    FZGJTP.check(R.id.fzgjtp_yc);
                    break;
            }
        } else {
            //FZGJTP.check(R.id.fzgjtp_zc);
        }
        FZGJTP.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fzgjtp_zc == checkedId)
                    obj.setFZGJTP("1");
                if (R.id.fzgjtp_yc == checkedId)
                    obj.setFZGJTP("2");
            }
        });

        //心电图
        FZXDT = (MultiLineChooseLayout) findViewById(R.id.FZXDT);
        fzxdtdata.add("正常");
        fzxdtdata.add("ST-T改变");
        fzxdtdata.add("陈旧性心肌梗塞");
        fzxdtdata.add("窦性心动过速");
        fzxdtdata.add("窦性心动过缓");
        fzxdtdata.add("早搏");
        fzxdtdata.add("房颤");
        fzxdtdata.add("房室传导阻滞");
        fzxdtdata.add("其他");
        FZXDT.setList(fzxdtdata);
        if (obj != null && !StringUtils.isEmpty(obj.getFZXDT())) {
            if (obj.getFZXDT().contains("1"))
                FZXDT.setIndexItemSelected(0);
            if (obj.getFZXDT().contains("2"))
                FZXDT.setIndexItemSelected(1);
            if (obj.getFZXDT().contains("3"))
                FZXDT.setIndexItemSelected(2);
            if (obj.getFZXDT().contains("4"))
                FZXDT.setIndexItemSelected(3);
            if (obj.getFZXDT().contains("5"))
                FZXDT.setIndexItemSelected(4);
            if (obj.getFZXDT().contains("6"))
                FZXDT.setIndexItemSelected(5);
            if (obj.getFZXDT().contains("7"))
                FZXDT.setIndexItemSelected(6);
            if (obj.getFZXDT().contains("8"))
                FZXDT.setIndexItemSelected(7);
            if (obj.getFZXDT().contains("9"))
                FZXDT.setIndexItemSelected(8);
        }else{
            //FZXDT.setIndexItemSelected(0);
        }

    }

    private void initXczyjkwtUI() {
        //JKXZJBQT,JKXGJBQT(数据库“心血管疾病”为2个字段，现只是用JKXZJBQT)
        JKNXGJBQT = (EditText) findViewById(R.id.JKNXGJBQT);
        if (obj != null && !StringUtils.isEmpty(obj.getJKNXGJBQT()))
            JKNXGJBQT.setText(obj.getJKNXGJBQT());
        JKSZJBQT = (EditText) findViewById(R.id.JKSZJBQT);
        if (obj != null && !StringUtils.isEmpty(obj.getJKSZJBQT()))
            JKSZJBQT.setText(obj.getJKSZJBQT());
        JKXZJBQT = (EditText) findViewById(R.id.JKXZJBQT);
        if (obj != null && !StringUtils.isEmpty(obj.getJKXZJBQT()))
            JKXZJBQT.setText(obj.getJKXZJBQT());
        JKYBJBQT = (EditText) findViewById(R.id.JKYBJBQT);
        if (obj != null && !StringUtils.isEmpty(obj.getJKYBJBQT()))
            JKYBJBQT.setText(obj.getJKYBJBQT());
        JKSJXTJBQT = (EditText) findViewById(R.id.JKSJXTJBQT);
        if (obj != null && !StringUtils.isEmpty(obj.getJKSJXTJBQT()))
            JKSJXTJBQT.setText(obj.getJKSJXTJBQT());
        JKQTXTJBQT = (EditText) findViewById(R.id.JKQTXTJBQT);
        if (obj != null && !StringUtils.isEmpty(obj.getJKQTXTJBQT()))
            JKQTXTJBQT.setText(obj.getJKQTXTJBQT());

        //JKXZJB,JKXGJB(数据库“心血管疾病”为2个字段，现只是用JKXZJB)
        //脑血管疾病
        JKNXGJB = (MultiLineChooseLayout) findViewById(R.id.JKNXGJB);
        jknxgjbdata.add("未发现");
        jknxgjbdata.add("缺血性卒中");
        jknxgjbdata.add("脑出血");
        jknxgjbdata.add("蛛网膜下腔出血");
        jknxgjbdata.add("短暂性脑缺血发作");
        jknxgjbdata.add("其他");
        JKNXGJB.setList(jknxgjbdata);
        if (obj != null && !StringUtils.isEmpty(obj.getJKNXGJB())) {
            if (obj.getJKNXGJB().contains("1"))
                JKNXGJB.setIndexItemSelected(0);
            if (obj.getJKNXGJB().contains("2"))
                JKNXGJB.setIndexItemSelected(1);
            if (obj.getJKNXGJB().contains("3"))
                JKNXGJB.setIndexItemSelected(2);
            if (obj.getJKNXGJB().contains("4"))
                JKNXGJB.setIndexItemSelected(3);
            if (obj.getJKNXGJB().contains("5"))
                JKNXGJB.setIndexItemSelected(4);
            if (obj.getJKNXGJB().contains("6"))
                JKNXGJB.setIndexItemSelected(5);
        }
        //肾脏疾病
        JKSZJB = (MultiLineChooseLayout) findViewById(R.id.JKSZJB);
        jkszjbdata.add("未发现");
        jkszjbdata.add("糖尿病肾病");
        jkszjbdata.add("肾功能衰竭");
        jkszjbdata.add("急性肾炎");
        jkszjbdata.add("慢性肾炎");
        jkszjbdata.add("其他");
        JKSZJB.setList(jkszjbdata);
        if (obj != null && !StringUtils.isEmpty(obj.getJKSZJB())) {
            if (obj.getJKSZJB().contains("1"))
                JKSZJB.setIndexItemSelected(0);
            if (obj.getJKSZJB().contains("2"))
                JKSZJB.setIndexItemSelected(1);
            if (obj.getJKSZJB().contains("3"))
                JKSZJB.setIndexItemSelected(2);
            if (obj.getJKSZJB().contains("4"))
                JKSZJB.setIndexItemSelected(3);
            if (obj.getJKSZJB().contains("5"))
                JKSZJB.setIndexItemSelected(4);
            if (obj.getJKSZJB().contains("6"))
                JKSZJB.setIndexItemSelected(5);
        }
        //心血管疾病
        JKXZJB = (MultiLineChooseLayout) findViewById(R.id.JKXZJB);
        jkxzjbdata.add("未发现");
        jkxzjbdata.add("心肌梗死");
        jkxzjbdata.add("心绞痛");
        jkxzjbdata.add("冠状动脉血运重建");
        jkxzjbdata.add("充血性心力衰竭");
        jkxzjbdata.add("心前区疼痛");
        jkxzjbdata.add("高血压");
        jkxzjbdata.add("夹层动脉瘤");
        jkxzjbdata.add("动脉闭塞性疾病");
        jkxzjbdata.add("其他");
        JKXZJB.setList(jkxzjbdata);
        if (obj != null && !StringUtils.isEmpty(obj.getJKXZJB())) {
            if (obj.getJKXZJB().contains("1"))
                JKXZJB.setIndexItemSelected(0);
            if (obj.getJKXZJB().contains("2"))
                JKXZJB.setIndexItemSelected(1);
            if (obj.getJKXZJB().contains("3"))
                JKXZJB.setIndexItemSelected(2);
            if (obj.getJKXZJB().contains("4"))
                JKXZJB.setIndexItemSelected(3);
            if (obj.getJKXZJB().contains("5"))
                JKXZJB.setIndexItemSelected(4);
            if (obj.getJKXZJB().contains("6"))
                JKXZJB.setIndexItemSelected(5);
            if (obj.getJKXZJB().contains("7"))
                JKXZJB.setIndexItemSelected(6);
            if (obj.getJKXZJB().contains("8"))
                JKXZJB.setIndexItemSelected(7);
            if (obj.getJKXZJB().contains("9"))
                JKXZJB.setIndexItemSelected(8);
            if (obj.getJKXZJB().contains("10"))
                JKXZJB.setIndexItemSelected(9);
        }
        //眼部疾病
        JKYBJB = (MultiLineChooseLayout) findViewById(R.id.JKYBJB);
        jkybjbdata.add("未发现");
        jkybjbdata.add("视网膜出血或渗出");
        jkybjbdata.add("视乳头水肿");
        jkybjbdata.add("白内障");
        jkybjbdata.add("其他");
        JKYBJB.setList(jkybjbdata);
        if (obj != null && !StringUtils.isEmpty(obj.getJKYBJB())) {
            if (obj.getJKYBJB().contains("1"))
                JKYBJB.setIndexItemSelected(0);
            if (obj.getJKYBJB().contains("2"))
                JKYBJB.setIndexItemSelected(1);
            if (obj.getJKYBJB().contains("3"))
                JKYBJB.setIndexItemSelected(2);
            if (obj.getJKYBJB().contains("4"))
                JKYBJB.setIndexItemSelected(3);
            if (obj.getJKYBJB().contains("5"))
                JKYBJB.setIndexItemSelected(4);
        }
        //神经系统其他疾病
        JKSJXTJB = (MultiLineChooseLayout) findViewById(R.id.JKSJXTJB);
        jksjxtjbdata.add("未发现");
        jksjxtjbdata.add("阿尔茨海默症（老年性痴呆）");
        jksjxtjbdata.add("帕金森病");
        jksjxtjbdata.add("其他");
        JKSJXTJB.setList(jksjxtjbdata);
        if (obj != null && !StringUtils.isEmpty(obj.getJKSJXTJB())) {
            if (obj.getJKSJXTJB().contains("1"))
                JKSJXTJB.setIndexItemSelected(0);
            if (obj.getJKSJXTJB().contains("2"))
                JKSJXTJB.setIndexItemSelected(1);
            if (obj.getJKSJXTJB().contains("3"))
                JKSJXTJB.setIndexItemSelected(2);
            if (obj.getJKSJXTJB().contains("4"))
                JKSJXTJB.setIndexItemSelected(3);
        }
        //其他系统疾病
        JKQTXTJB = (MultiLineChooseLayout) findViewById(R.id.JKQTXTJB);
        jkqtxtjbdata.add("未发现");
        jkqtxtjbdata.add("糖尿病");
        jkqtxtjbdata.add("慢性支气管炎");
        jkqtxtjbdata.add("慢性阻塞性肺气肿");
        jkqtxtjbdata.add("恶性肿瘤");
        jkqtxtjbdata.add("老年性骨关节病");
        jkqtxtjbdata.add("其他");
        JKQTXTJB.setList(jkqtxtjbdata);
        if (obj != null && !StringUtils.isEmpty(obj.getJKQTXTJB())) {
            if (obj.getJKQTXTJB().contains("1"))
                JKQTXTJB.setIndexItemSelected(0);
            if (obj.getJKQTXTJB().contains("2"))
                JKQTXTJB.setIndexItemSelected(1);
            if (obj.getJKQTXTJB().contains("3"))
                JKQTXTJB.setIndexItemSelected(2);
            if (obj.getJKQTXTJB().contains("4"))
                JKQTXTJB.setIndexItemSelected(3);
            if (obj.getJKQTXTJB().contains("5"))
                JKQTXTJB.setIndexItemSelected(4);
            if (obj.getJKQTXTJB().contains("6"))
                JKQTXTJB.setIndexItemSelected(5);
            if (obj.getJKQTXTJB().contains("7"))
                JKQTXTJB.setIndexItemSelected(6);
        }
    }

    private void initZyzlqkUI() {
        //住院入院日期
        ZYRYRQ1 = (TextView) findViewById(R.id.ZYRYRQ1);
        ZYRYRQ1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
                String now = sdf.format(new Date());
                customDatePicker = new CustomDatePicker(con, new CustomDatePicker.ResultHandler() {
                    @Override
                    public void handle(String time) { // 回调接口，获得选中的时间
                        ZYRYRQ1.setText(time.split(" ")[0]);
                    }
                }, "1900-01-01 00:00", now); // 初始化日期格式请用：yyyy-MM-dd HH:mm，否则不能正常运行
                customDatePicker.showSpecificTime(false); // 不显示时和分
                customDatePicker.setIsLoop(false); // 不允许循环滚动
                customDatePicker.show(now);
            }
        });
        if (obj != null && !StringUtils.isEmptyRq(obj.getZYRYRQ1()))
            ZYRYRQ1.setText(obj.getZYRYRQ1());
        //住院出院日期
        ZYCYRQ1 = (TextView) findViewById(R.id.ZYCYRQ1);
        ZYCYRQ1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
                String now = sdf.format(new Date());
                customDatePicker = new CustomDatePicker(con, new CustomDatePicker.ResultHandler() {
                    @Override
                    public void handle(String time) { // 回调接口，获得选中的时间
                        ZYCYRQ1.setText(time.split(" ")[0]);
                    }
                }, "1900-01-01 00:00", now); // 初始化日期格式请用：yyyy-MM-dd HH:mm，否则不能正常运行
                customDatePicker.showSpecificTime(false); // 不显示时和分
                customDatePicker.setIsLoop(false); // 不允许循环滚动
                customDatePicker.show(now);
            }
        });
        if (obj != null && !StringUtils.isEmptyRq(obj.getZYCYRQ1()))
            ZYCYRQ1.setText(obj.getZYCYRQ1());
        //住院原因
        ZYYY1 = (EditText) findViewById(R.id.ZYYY1);
        if (obj != null && !StringUtils.isEmpty(obj.getZYYY1()))
            ZYYY1.setText(obj.getZYYY1());
        ZYYLJG1 = (EditText) findViewById(R.id.ZYYLJG1);
        if (obj != null && !StringUtils.isEmpty(obj.getZYYLJG1()))
            ZYYLJG1.setText(obj.getZYYLJG1());
        ZYBAH1 = (EditText) findViewById(R.id.ZYBAH1);
        if (obj != null && !StringUtils.isEmpty(obj.getZYBAH1()))
            ZYBAH1.setText(obj.getZYBAH1());

        //住院入院日期2
        ZYRYRQ2 = (TextView) findViewById(R.id.ZYRYRQ2);
        ZYRYRQ2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
                String now = sdf.format(new Date());
                customDatePicker = new CustomDatePicker(con, new CustomDatePicker.ResultHandler() {
                    @Override
                    public void handle(String time) { // 回调接口，获得选中的时间
                        ZYRYRQ2.setText(time.split(" ")[0]);
                    }
                }, "1900-01-01 00:00", now); // 初始化日期格式请用：yyyy-MM-dd HH:mm，否则不能正常运行
                customDatePicker.showSpecificTime(false); // 不显示时和分
                customDatePicker.setIsLoop(false); // 不允许循环滚动
                customDatePicker.show(now);
            }
        });
        if (obj != null && !StringUtils.isEmptyRq(obj.getZYRYRQ2()))
            ZYRYRQ2.setText(obj.getZYRYRQ2());
        //住院出院日期2
        ZYCYRQ2 = (TextView) findViewById(R.id.ZYCYRQ2);
        ZYCYRQ2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
                String now = sdf.format(new Date());
                customDatePicker = new CustomDatePicker(con, new CustomDatePicker.ResultHandler() {
                    @Override
                    public void handle(String time) { // 回调接口，获得选中的时间
                        ZYCYRQ2.setText(time.split(" ")[0]);
                    }
                }, "1900-01-01 00:00", now); // 初始化日期格式请用：yyyy-MM-dd HH:mm，否则不能正常运行
                customDatePicker.showSpecificTime(false); // 不显示时和分
                customDatePicker.setIsLoop(false); // 不允许循环滚动
                customDatePicker.show(now);
            }
        });
        if (obj != null && !StringUtils.isEmptyRq(obj.getZYCYRQ2()))
            ZYCYRQ2.setText(obj.getZYCYRQ2());
        //住院原因2
        ZYYY2 = (EditText) findViewById(R.id.ZYYY2);
        if (obj != null && !StringUtils.isEmpty(obj.getZYYY2()))
            ZYYY2.setText(obj.getZYYY2());
        ZYYLJG2 = (EditText) findViewById(R.id.ZYYLJG2);
        if (obj != null && !StringUtils.isEmpty(obj.getZYYLJG2()))
            ZYYLJG2.setText(obj.getZYYLJG2());
        ZYBAH2 = (EditText) findViewById(R.id.ZYBAH2);
        if (obj != null && !StringUtils.isEmpty(obj.getZYBAH2()))
            ZYBAH2.setText(obj.getZYBAH2());

        //家庭建床日期1
        JTJCRQ1 = (TextView) findViewById(R.id.JTJCRQ1);
        JTJCRQ1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
                String now = sdf.format(new Date());
                customDatePicker = new CustomDatePicker(con, new CustomDatePicker.ResultHandler() {
                    @Override
                    public void handle(String time) { // 回调接口，获得选中的时间
                        JTJCRQ1.setText(time.split(" ")[0]);
                    }
                }, "1900-01-01 00:00", now); // 初始化日期格式请用：yyyy-MM-dd HH:mm，否则不能正常运行
                customDatePicker.showSpecificTime(false); // 不显示时和分
                customDatePicker.setIsLoop(false); // 不允许循环滚动
                customDatePicker.show(now);
            }
        });
        if (obj != null && !StringUtils.isEmptyRq(obj.getJTJCRQ1()))
            JTJCRQ1.setText(obj.getJTJCRQ1());
        //家庭撤床日期1
        JTCCRQ1 = (TextView) findViewById(R.id.JTCCRQ1);
        JTCCRQ1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
                String now = sdf.format(new Date());
                customDatePicker = new CustomDatePicker(con, new CustomDatePicker.ResultHandler() {
                    @Override
                    public void handle(String time) { // 回调接口，获得选中的时间
                        JTCCRQ1.setText(time.split(" ")[0]);
                    }
                }, "1900-01-01 00:00", now); // 初始化日期格式请用：yyyy-MM-dd HH:mm，否则不能正常运行
                customDatePicker.showSpecificTime(false); // 不显示时和分
                customDatePicker.setIsLoop(false); // 不允许循环滚动
                customDatePicker.show(now);
            }
        });
        if (obj != null && !StringUtils.isEmptyRq(obj.getJTCCRQ1()))
            JTCCRQ1.setText(obj.getJTCCRQ1());
        //家庭建床原因
        JTYY1 = (EditText) findViewById(R.id.JTYY1);
        if (obj != null && !StringUtils.isEmpty(obj.getJTYY1()))
            JTYY1.setText(obj.getJTYY1());
        JTYLJG1 = (EditText) findViewById(R.id.JTYLJG1);
        if (obj != null && !StringUtils.isEmpty(obj.getJTYLJG1()))
            JTYLJG1.setText(obj.getJTYLJG1());
        JTBAH1 = (EditText) findViewById(R.id.JTBAH1);
        if (obj != null && !StringUtils.isEmpty(obj.getJTBAH1()))
            JTBAH1.setText(obj.getJTBAH1());

        //家庭建床日期2
        JTJCRQ2 = (TextView) findViewById(R.id.JTJCRQ2);
        JTJCRQ2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
                String now = sdf.format(new Date());
                customDatePicker = new CustomDatePicker(con, new CustomDatePicker.ResultHandler() {
                    @Override
                    public void handle(String time) { // 回调接口，获得选中的时间
                        JTJCRQ2.setText(time.split(" ")[0]);
                    }
                }, "1900-01-01 00:00", now); // 初始化日期格式请用：yyyy-MM-dd HH:mm，否则不能正常运行
                customDatePicker.showSpecificTime(false); // 不显示时和分
                customDatePicker.setIsLoop(false); // 不允许循环滚动
                customDatePicker.show(now);
            }
        });
        if (obj != null && !StringUtils.isEmptyRq(obj.getJTJCRQ2()))
            JTJCRQ2.setText(obj.getJTJCRQ2());
        //家庭撤床日期2
        JTCCRQ2 = (TextView) findViewById(R.id.JTCCRQ2);
        JTCCRQ2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
                String now = sdf.format(new Date());
                customDatePicker = new CustomDatePicker(con, new CustomDatePicker.ResultHandler() {
                    @Override
                    public void handle(String time) { // 回调接口，获得选中的时间
                        JTCCRQ2.setText(time.split(" ")[0]);
                    }
                }, "1900-01-01 00:00", now); // 初始化日期格式请用：yyyy-MM-dd HH:mm，否则不能正常运行
                customDatePicker.showSpecificTime(false); // 不显示时和分
                customDatePicker.setIsLoop(false); // 不允许循环滚动
                customDatePicker.show(now);
            }
        });
        if (obj != null && !StringUtils.isEmptyRq(obj.getJTCCRQ2()))
            JTCCRQ2.setText(obj.getJTCCRQ2());

        JTYY2 = (EditText) findViewById(R.id.JTYY2);
        if (obj != null && !StringUtils.isEmpty(obj.getJTYY2()))
            JTYY2.setText(obj.getJTYY2());
        JTYLJG2 = (EditText) findViewById(R.id.JTYLJG2);
        if (obj != null && !StringUtils.isEmpty(obj.getJTYLJG2()))
            JTYLJG2.setText(obj.getJTYLJG2());
        JTBAH2 = (EditText) findViewById(R.id.JTBAH2);
        if (obj != null && !StringUtils.isEmpty(obj.getJTBAH2()))
            JTBAH2.setText(obj.getJTBAH2());

        //住院史
        ZYS = (RadioGroup) findViewById(R.id.ZYS);
        if (obj != null && !StringUtils.isEmpty(obj.getZYS())) {
            switch (Integer.parseInt(null == obj.getZYS()? "0" : obj.getZYS())) {
                case 1:
                    ZYS.check(R.id.zys_wu);
                    break;
                case 2:
                    ZYS.check(R.id.zys_you);
                    break;
            }
        } else {
            //ZYS.check(R.id.zys_wu);
        }
        ZYS.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.zys_wu == checkedId)
                    obj.setZYS("1");
                if (R.id.zys_you == checkedId)
                    obj.setZYS("2");
            }
        });
        //家庭病床史
        JTBCS = (RadioGroup) findViewById(R.id.JTBCS);
        if (obj != null && !StringUtils.isEmpty(obj.getJTBCS())) {
            switch (Integer.parseInt(null == obj.getJTBCS()? "0" : obj.getJTBCS())) {
                case 1:
                    JTBCS.check(R.id.jtbcs_wu);
                    break;
                case 2:
                    JTBCS.check(R.id.jtbcs_you);
                    break;
            }
        } else {
            //JTBCS.check(R.id.jtbcs_wu);
        }
        JTBCS.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.jtbcs_wu == checkedId)
                    obj.setJTBCS("1");
                if (R.id.jtbcs_you == checkedId)
                    obj.setJTBCS("2");
            }
        });
    }

    private void initZyyyqkUI() {

        YPMC1 = (EditText) findViewById(R.id.YPMC1);
        if (obj != null && !StringUtils.isEmpty(obj.getYPMC1()))
            YPMC1.setText(obj.getYPMC1());
        YPYF1 = (EditText) findViewById(R.id.YPYF1);
        if (obj != null && !StringUtils.isEmpty(obj.getYPYF1()))
            YPYF1.setText(obj.getYPYF1());
        YPYL1 = (EditText) findViewById(R.id.YPYL1);
        if (obj != null && !StringUtils.isEmpty(obj.getYPYL1()))
            YPYL1.setText(obj.getYPYL1());
        YYSJ1 = (EditText) findViewById(R.id.YYSJ1);
        if (obj != null && !StringUtils.isEmpty(obj.getYYSJ1()))
            YYSJ1.setText(obj.getYYSJ1());

        YPMC2 = (EditText) findViewById(R.id.YPMC2);
        if (obj != null && !StringUtils.isEmpty(obj.getYPMC2()))
            YPMC2.setText(obj.getYPMC2());
        YPYF2 = (EditText) findViewById(R.id.YPYF2);
        if (obj != null && !StringUtils.isEmpty(obj.getYPYF2()))
            YPYF2.setText(obj.getYPYF2());
        YPYL2 = (EditText) findViewById(R.id.YPYL2);
        if (obj != null && !StringUtils.isEmpty(obj.getYPYL2()))
            YPYL2.setText(obj.getYPYL2());
        YYSJ2 = (EditText) findViewById(R.id.YYSJ2);
        if (obj != null && !StringUtils.isEmpty(obj.getYYSJ2()))
            YYSJ2.setText(obj.getYYSJ2());

        YPMC3 = (EditText) findViewById(R.id.YPMC3);
        if (obj != null && !StringUtils.isEmpty(obj.getYPMC3()))
            YPMC3.setText(obj.getYPMC3());
        YPYF3 = (EditText) findViewById(R.id.YPYF3);
        if (obj != null && !StringUtils.isEmpty(obj.getYPYF3()))
            YPYF3.setText(obj.getYPYF3());
        YPYL3 = (EditText) findViewById(R.id.YPYL3);
        if (obj != null && !StringUtils.isEmpty(obj.getYPYL3()))
            YPYL3.setText(obj.getYPYL3());
        YYSJ3 = (EditText) findViewById(R.id.YYSJ3);
        if (obj != null && !StringUtils.isEmpty(obj.getYYSJ3()))
            YYSJ3.setText(obj.getYYSJ3());

        YPMC4 = (EditText) findViewById(R.id.YPMC4);
        if (obj != null && !StringUtils.isEmpty(obj.getYPMC4()))
            YPMC4.setText(obj.getYPMC4());
        YPYF4 = (EditText) findViewById(R.id.YPYF4);
        if (obj != null && !StringUtils.isEmpty(obj.getYPYF4()))
            YPYF4.setText(obj.getYPYF4());
        YPYL4 = (EditText) findViewById(R.id.YPYL4);
        if (obj != null && !StringUtils.isEmpty(obj.getYPYL4()))
            YPYL4.setText(obj.getYPYL4());
        YYSJ4 = (EditText) findViewById(R.id.YYSJ4);
        if (obj != null && !StringUtils.isEmpty(obj.getYYSJ4()))
            YYSJ4.setText(obj.getYYSJ4());

        YPMC5 = (EditText) findViewById(R.id.YPMC5);
        if (obj != null && !StringUtils.isEmpty(obj.getYPMC5()))
            YPMC5.setText(obj.getYPMC5());
        YPYF5 = (EditText) findViewById(R.id.YPYF5);
        if (obj != null && !StringUtils.isEmpty(obj.getYPYF5()))
            YPYF5.setText(obj.getYPYF5());
        YPYL5 = (EditText) findViewById(R.id.YPYL5);
        if (obj != null && !StringUtils.isEmpty(obj.getYPYL5()))
            YPYL5.setText(obj.getYPYL5());
        YYSJ5 = (EditText) findViewById(R.id.YYSJ5);
        if (obj != null && !StringUtils.isEmpty(obj.getYYSJ5()))
            YYSJ5.setText(obj.getYYSJ5());

        YPMC6 = (EditText) findViewById(R.id.YPMC6);
        if (obj != null && !StringUtils.isEmpty(obj.getYPMC6()))
            YPMC6.setText(obj.getYPMC6());
        YPYF6 = (EditText) findViewById(R.id.YPYF6);
        if (obj != null && !StringUtils.isEmpty(obj.getYPYF6()))
            YPYF6.setText(obj.getYPYF6());
        YPYL6 = (EditText) findViewById(R.id.YPYL6);
        if (obj != null && !StringUtils.isEmpty(obj.getYPYL6()))
            YPYL6.setText(obj.getYPYL6());
        YYSJ6 = (EditText) findViewById(R.id.YYSJ6);
        if (obj != null && !StringUtils.isEmpty(obj.getYYSJ6()))
            YYSJ6.setText(obj.getYYSJ6());

        //主要用药情况-是否
        ZYYYQK = (RadioGroup) findViewById(R.id.ZYYYQK);
        if (obj != null && !StringUtils.isEmpty(obj.getZYYYQK())) {
            switch (Integer.parseInt(null == obj.getZYYYQK()? "0" : obj.getZYYYQK())) {
                case 1:
                    ZYYYQK.check(R.id.zyyyqk_wu);
                    break;
                case 2:
                    ZYYYQK.check(R.id.zyyyqk_you);
                    break;
            }
        } else {
            //ZYYYQK.check(R.id.zyyyqk_wu);
        }
        ZYYYQK.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.zyyyqk_wu == checkedId)
                    obj.setZYYYQK("1");
                if (R.id.zyyyqk_you == checkedId)
                    obj.setZYYYQK("2");
            }
        });
        //服药依从性1
        FYYCX1 = (RadioGroup) findViewById(R.id.FYYCX1);
        if (obj != null && !StringUtils.isEmpty(obj.getFYYCX1())) {
            switch (Integer.parseInt(null == obj.getFYYCX1()? "0" : obj.getFYYCX1())) {
                case 1:
                    FYYCX1.check(R.id.fyycx1_gl);
                    break;
                case 2:
                    FYYCX1.check(R.id.fyycx1_jd);
                    break;
                case 3:
                    FYYCX1.check(R.id.fyycx1_bfy);
                    break;
            }
        } else {
            //FYYCX1.check(R.id.fyycx1_gl);
        }
        FYYCX1.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fyycx1_gl == checkedId)
                    obj.setFYYCX1("1");
                if (R.id.fyycx1_jd == checkedId)
                    obj.setFYYCX1("2");
                if (R.id.fyycx1_bfy == checkedId)
                    obj.setFYYCX1("3");
            }
        });
        //服药依从性2
        FYYCX2 = (RadioGroup) findViewById(R.id.FYYCX2);
        if (obj != null && !StringUtils.isEmpty(obj.getFYYCX2())) {
            switch (Integer.parseInt(null == obj.getFYYCX2()? "0" : obj.getFYYCX2())) {
                case 1:
                    FYYCX2.check(R.id.fyycx2_gl);
                    break;
                case 2:
                    FYYCX2.check(R.id.fyycx2_jd);
                    break;
                case 3:
                    FYYCX2.check(R.id.fyycx2_bfy);
                    break;
            }
        } else {
            //FYYCX2.check(R.id.fyycx2_bfy);
        }
        FYYCX2.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fyycx2_gl == checkedId)
                    obj.setFYYCX2("1");
                if (R.id.fyycx2_jd == checkedId)
                    obj.setFYYCX2("2");
                if (R.id.fyycx2_bfy == checkedId)
                    obj.setFYYCX2("3");
            }
        });
        //服药依从性3
        FYYCX3 = (RadioGroup) findViewById(R.id.FYYCX3);
        if (obj != null && !StringUtils.isEmpty(obj.getFYYCX3())) {
            switch (Integer.parseInt(null == obj.getFYYCX3()? "0" : obj.getFYYCX3())) {
                case 1:
                    FYYCX3.check(R.id.fyycx3_gl);
                    break;
                case 2:
                    FYYCX3.check(R.id.fyycx3_jd);
                    break;
                case 3:
                    FYYCX3.check(R.id.fyycx3_bfy);
                    break;
            }
        } else {
            //FYYCX3.check(R.id.fyycx3_bfy);
        }
        FYYCX3.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fyycx3_gl == checkedId)
                    obj.setFYYCX3("1");
                if (R.id.fyycx3_jd == checkedId)
                    obj.setFYYCX3("2");
                if (R.id.fyycx3_bfy == checkedId)
                    obj.setFYYCX3("3");
            }
        });
        //服药依从性4
        FYYCX4 = (RadioGroup) findViewById(R.id.FYYCX4);
        if (obj != null && !StringUtils.isEmpty(obj.getFYYCX4())) {
            switch (Integer.parseInt(null == obj.getFYYCX4()? "0" : obj.getFYYCX4())) {
                case 1:
                    FYYCX4.check(R.id.fyycx4_gl);
                    break;
                case 2:
                    FYYCX4.check(R.id.fyycx4_jd);
                    break;
                case 3:
                    FYYCX4.check(R.id.fyycx4_bfy);
                    break;
            }
        } else {
            //FYYCX4.check(R.id.fyycx4_bfy);
        }
        FYYCX4.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fyycx4_gl == checkedId)
                    obj.setFYYCX4("1");
                if (R.id.fyycx4_jd == checkedId)
                    obj.setFYYCX4("2");
                if (R.id.fyycx4_bfy == checkedId)
                    obj.setFYYCX4("3");
            }
        });
        //服药依从性5
        FYYCX5 = (RadioGroup) findViewById(R.id.FYYCX5);
        if (obj != null && !StringUtils.isEmpty(obj.getFYYCX5())) {
            switch (Integer.parseInt(null == obj.getFYYCX5()? "0" : obj.getFYYCX5())) {
                case 1:
                    FYYCX5.check(R.id.fyycx5_gl);
                    break;
                case 2:
                    FYYCX5.check(R.id.fyycx5_jd);
                    break;
                case 3:
                    FYYCX5.check(R.id.fyycx5_bfy);
                    break;
            }
        } else {
            //FYYCX5.check(R.id.fyycx5_bfy);
        }
        FYYCX5.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fyycx5_gl == checkedId)
                    obj.setFYYCX5("1");
                if (R.id.fyycx5_jd == checkedId)
                    obj.setFYYCX5("2");
                if (R.id.fyycx5_bfy == checkedId)
                    obj.setFYYCX5("3");
            }
        });
        //服药依从性6
        FYYCX6 = (RadioGroup) findViewById(R.id.FYYCX6);
        if (obj != null && !StringUtils.isEmpty(obj.getFYYCX6())) {
            switch (Integer.parseInt(null == obj.getFYYCX6() ? "0" : obj.getFYYCX6())) {
                case 1:
                    FYYCX6.check(R.id.fyycx6_gl);
                    break;
                case 2:
                    FYYCX6.check(R.id.fyycx6_jd);
                    break;
                case 3:
                    FYYCX6.check(R.id.fyycx6_bfy);
                    break;
            }
        } else {
            //FYYCX6.check(R.id.fyycx6_bfy);
        }
        FYYCX6.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fyycx6_gl == checkedId)
                    obj.setFYYCX6("1");
                if (R.id.fyycx6_jd == checkedId)
                    obj.setFYYCX6("2");
                if (R.id.fyycx6_bfy == checkedId)
                    obj.setFYYCX6("3");
            }
        });

    }


    private void initFmyghyfjzsUI() {
        //非免疫规划预防接种史 -是否
        FMYJZ = (RadioGroup) findViewById(R.id.FMYJZ);
        if (obj != null && !StringUtils.isEmpty(obj.getFMYJZ())) {
            switch (Integer.parseInt(null == obj.getFMYJZ() ? "0" : obj.getFMYJZ())) {
                case 1:
                    FMYJZ.check(R.id.fmyjz_wu);
                    break;
                case 2:
                    FMYJZ.check(R.id.fmyjz_you);
                    break;
            }
        } else {
            //FMYJZ.check(R.id.fmyjz_wu);
        }
        FMYJZ.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.fmyjz_wu == checkedId)
                    obj.setFMYJZ("1");
                if (R.id.fmyjz_you == checkedId)
                    obj.setFMYJZ("2");
            }
        });
        //
        YMMC1 = (EditText) findViewById(R.id.YMMC1);
        if (obj != null && !StringUtils.isEmpty(obj.getYMMC1()))
            YMMC1.setText(obj.getYMMC1());
        //接种日期1
        JZRQ1 = (TextView) findViewById(R.id.JZRQ1);
        JZRQ1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
                String now = sdf.format(new Date());
                customDatePicker = new CustomDatePicker(con, new CustomDatePicker.ResultHandler() {
                    @Override
                    public void handle(String time) { // 回调接口，获得选中的时间
                        JZRQ1.setText(time.split(" ")[0]);
                    }
                }, "1900-01-01 00:00", now); // 初始化日期格式请用：yyyy-MM-dd HH:mm，否则不能正常运行
                customDatePicker.showSpecificTime(false); // 不显示时和分
                customDatePicker.setIsLoop(false); // 不允许循环滚动
                customDatePicker.show(now);
            }
        });
        if (obj != null && !StringUtils.isEmptyRq(obj.getJZRQ1()))
            JZRQ1.setText(obj.getJZRQ1());

        JZJG1 = (EditText) findViewById(R.id.JZJG1);
        if (obj != null && !StringUtils.isEmpty(obj.getJZJG1()))
            JZJG1.setText(obj.getJZJG1());


        YMMC2 = (EditText) findViewById(R.id.YMMC2);
        if (obj != null && !StringUtils.isEmpty(obj.getYMMC2()))
            YMMC2.setText(obj.getYMMC2());
        //接种日期2
        JZRQ2 = (TextView) findViewById(R.id.JZRQ2);
        JZRQ2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
                String now = sdf.format(new Date());
                customDatePicker = new CustomDatePicker(con, new CustomDatePicker.ResultHandler() {
                    @Override
                    public void handle(String time) { // 回调接口，获得选中的时间
                        JZRQ2.setText(time.split(" ")[0]);
                    }
                }, "1900-01-01 00:00", now); // 初始化日期格式请用：yyyy-MM-dd HH:mm，否则不能正常运行
                customDatePicker.showSpecificTime(false); // 不显示时和分
                customDatePicker.setIsLoop(false); // 不允许循环滚动
                customDatePicker.show(now);
            }
        });
        if (obj != null && !StringUtils.isEmptyRq(obj.getJZRQ2()))
            JZRQ2.setText(obj.getJZRQ2());
        JZJG2 = (EditText) findViewById(R.id.JZJG2);
        if (obj != null && !StringUtils.isEmpty(obj.getJZJG2()))
            JZJG2.setText(obj.getJZJG2());

        YMMC3 = (EditText) findViewById(R.id.YMMC3);
        if (obj != null && !StringUtils.isEmpty(obj.getYMMC3()))
            YMMC3.setText(obj.getYMMC3());
        //接种日期3
        JZRQ3 = (TextView) findViewById(R.id.JZRQ3);
        JZRQ3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
                String now = sdf.format(new Date());
                customDatePicker = new CustomDatePicker(con, new CustomDatePicker.ResultHandler() {
                    @Override
                    public void handle(String time) { // 回调接口，获得选中的时间
                        JZRQ3.setText(time.split(" ")[0]);
                    }
                }, "1900-01-01 00:00", now); // 初始化日期格式请用：yyyy-MM-dd HH:mm，否则不能正常运行
                customDatePicker.showSpecificTime(false); // 不显示时和分
                customDatePicker.setIsLoop(false); // 不允许循环滚动
                customDatePicker.show(now);
            }
        });
        if (obj != null && !StringUtils.isEmptyRq(obj.getJZRQ3()))
            JZRQ3.setText(obj.getJZRQ3());
        JZJG3 = (EditText) findViewById(R.id.JZJG3);
        if (obj != null && !StringUtils.isEmpty(obj.getJZJG3()))
            JZJG3.setText(obj.getJZJG3());

    }

    private void initJkpjJkzdUI() {
        //健康评价
        JKPJ = (RadioGroup) findViewById(R.id.JKPJ);
        if (obj != null && !StringUtils.isEmpty(obj.getJKPJ())) {
            switch (Integer.parseInt(null == obj.getJKPJ() ? "0" : obj.getJKPJ())) {
                case 1:
                    JKPJ.check(R.id.jkpj_tjwyc);
                    break;
                case 2:
                    JKPJ.check(R.id.jkpj_yyc);
                    break;
            }
        } else {
            JKPJ.check(R.id.jkpj_tjwyc);
        }
        JKPJ.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
                if (R.id.jkpj_tjwyc == checkedId)
                    obj.setJKPJ("1");
                if (R.id.jkpj_yyc == checkedId)
                    obj.setJKPJ("2");
            }
        });
        //
        JKPJ1 = (EditText) findViewById(R.id.JKPJ1);
        if (obj != null && !StringUtils.isEmpty(obj.getJKPJ1()))
            JKPJ1.setText(obj.getJKPJ1());
        JKPJ2 = (EditText) findViewById(R.id.JKPJ2);
        if (obj != null && !StringUtils.isEmpty(obj.getJKPJ2()))
            JKPJ2.setText(obj.getJKPJ2());
        JKPJ3 = (EditText) findViewById(R.id.JKPJ3);
        if (obj != null && !StringUtils.isEmpty(obj.getJKPJ3()))
            JKPJ3.setText(obj.getJKPJ3());
        JKPJ4 = (EditText) findViewById(R.id.JKPJ4);
        if (obj != null && !StringUtils.isEmpty(obj.getJKPJ4()))
            JKPJ4.setText(obj.getJKPJ4());
        WXYSJTZ = (EditText) findViewById(R.id.WXYSJTZ);
        if (obj != null && !StringUtils.isEmpty(obj.getWXYSJTZ()))
            WXYSJTZ.setText(obj.getWXYSJTZ());
        WXYSYM = (EditText) findViewById(R.id.WXYSYM);
        if (obj != null && !StringUtils.isEmpty(obj.getWXYSYM()))
            WXYSYM.setText(obj.getWXYSYM());
        WXYSKZQT = (EditText) findViewById(R.id.WXYSKZQT);
        if (obj != null && !StringUtils.isEmpty(obj.getWXYSKZQT()))
            WXYSKZQT.setText(obj.getWXYSKZQT());

        JKZD = (MultiLineChooseLayout) findViewById(R.id.JKZD);
        jkzddata.add("纳入慢性病患者健康管理");
        jkzddata.add("建议复查");
        jkzddata.add("建议转诊");
        JKZD.setList(jkzddata);
        if (obj != null && !StringUtils.isEmpty(obj.getJKZD())) {
            if (obj.getJKZD().contains("1"))
                JKZD.setIndexItemSelected(0);
            if (obj.getJKZD().contains("2"))
                JKZD.setIndexItemSelected(1);
            if (obj.getJKZD().contains("3"))
                JKZD.setIndexItemSelected(2);
        }
        WXYSKZ = (MultiLineChooseLayout) findViewById(R.id.WXYSKZ);
        wxyskzdata.add("戒烟");
        wxyskzdata.add("健康饮酒");
        wxyskzdata.add("饮食");
        wxyskzdata.add("锻炼");
        wxyskzdata.add("减体重");
        wxyskzdata.add("建议接种疫苗");
        wxyskzdata.add("其他");
        WXYSKZ.setList(wxyskzdata);
        if (obj != null && !StringUtils.isEmpty(obj.getWXYSKZ())) {
            if (obj.getWXYSKZ().contains("1"))
                WXYSKZ.setIndexItemSelected(0);
            if (obj.getWXYSKZ().contains("2"))
                WXYSKZ.setIndexItemSelected(1);
            if (obj.getWXYSKZ().contains("3"))
                WXYSKZ.setIndexItemSelected(2);
            if (obj.getWXYSKZ().contains("4"))
                WXYSKZ.setIndexItemSelected(3);
            if (obj.getWXYSKZ().contains("5"))
                WXYSKZ.setIndexItemSelected(4);
            if (obj.getWXYSKZ().contains("6"))
                WXYSKZ.setIndexItemSelected(5);
            if (obj.getWXYSKZ().contains("7"))
                WXYSKZ.setIndexItemSelected(6);
        }
    }

    //导航的点击事件
    public void menuClick() {
        zz_ll = (LinearLayout) findViewById(R.id.zz_ll);
        fzjc_ll = (LinearLayout) findViewById(R.id.fzjc_ll);
        chati_ll = (LinearLayout) findViewById(R.id.chati_ll);
        zqgn_ll = (LinearLayout) findViewById(R.id.zqgn_ll);
        shfs_ll = (LinearLayout) findViewById(R.id.shfs_ll);
        ybzk_ll = (LinearLayout) findViewById(R.id.ybzk_ll);
        xczyjkwt_ll = (LinearLayout) findViewById(R.id.xczyjkwt_ll);
        zyzlqk_ll = (LinearLayout) findViewById(R.id.zyzlqk_ll);
        zyyyqk_ll = (LinearLayout) findViewById(R.id.zyyyqk_ll);
        fmyghyfjzs_ll = (LinearLayout) findViewById(R.id.fmyghyfjzs_ll);
        jkpj_jkzd_ll = (LinearLayout) findViewById(R.id.jkpj_jkzd_ll);

        zz_image = (ImageView) findViewById(R.id.zz_image);
        ybzk_image = (ImageView) findViewById(R.id.ybzk_image);
        shfs_image = (ImageView) findViewById(R.id.shfs_image);
        zqgn_image = (ImageView) findViewById(R.id.zqgn_image);
        chati_image = (ImageView) findViewById(R.id.chati_image);
        fzjc_image = (ImageView) findViewById(R.id.fzjc_image);
        xczyjkwt_image = (ImageView) findViewById(R.id.xczyjkwt_image);
        zyzlqk_image = (ImageView) findViewById(R.id.zyzlqk_image);
        zyyyqk_image = (ImageView) findViewById(R.id.zyyyqk_image);
        fmyghyfjzs_image = (ImageView) findViewById(R.id.fmyghyfjzs_image);
        jkpj_jkzd_image = (ImageView) findViewById(R.id.jkpj_jkzd_image);

        zz_content_ll = (LinearLayout) findViewById(R.id.zz_content_ll);
        ybzk_content_ll = (LinearLayout) findViewById(R.id.ybzk_content_ll);
        shfs_content_ll = (LinearLayout) findViewById(R.id.shfs_content_ll);
        zqgn_content_ll = (LinearLayout) findViewById(R.id.zqgn_content_ll);
        chati_content_ll = (LinearLayout) findViewById(R.id.chati_content_ll);
        fzjc_content_ll = (LinearLayout) findViewById(R.id.fzjc_content_ll);
        xczyjkwt_content_ll = (LinearLayout) findViewById(R.id.xczyjkwt_content_ll);
        zyzlqk_content_ll = (LinearLayout) findViewById(R.id.zyzlqk_content_ll);
        zyyyqk_content_ll = (LinearLayout) findViewById(R.id.zyyyqk_content_ll);
        fmyghyfjzs_content_ll = (LinearLayout) findViewById(R.id.fmyghyfjzs_content_ll);
        jkpj_jkzd_content_ll = (LinearLayout) findViewById(R.id.jkpj_jkzd_content_ll);

        zz_ll.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ybzk_image.setImageResource(R.mipmap.zsj);
                shfs_image.setImageResource(R.mipmap.zsj);
                zqgn_image.setImageResource(R.mipmap.zsj);
                chati_image.setImageResource(R.mipmap.zsj);
                fzjc_image.setImageResource(R.mipmap.zsj);
                xczyjkwt_image.setImageResource(R.mipmap.zsj);
                zyzlqk_image.setImageResource(R.mipmap.zsj);
                zyyyqk_image.setImageResource(R.mipmap.zsj);
                fmyghyfjzs_image.setImageResource(R.mipmap.zsj);
                jkpj_jkzd_image.setImageResource(R.mipmap.zsj);

                if (zz_content_ll.getVisibility() == View.VISIBLE) {
                    zz_image.setImageResource(R.mipmap.zsj);
                    zz_content_ll.setVisibility(View.GONE);
                } else {
                    zz_image.setImageResource(R.mipmap.xsj);
                    zz_content_ll.setVisibility(View.VISIBLE);
                }

                ybzk_content_ll.setVisibility(View.GONE);
                shfs_content_ll.setVisibility(View.GONE);
                zqgn_content_ll.setVisibility(View.GONE);
                chati_content_ll.setVisibility(View.GONE);
                fzjc_content_ll.setVisibility(View.GONE);

                xczyjkwt_content_ll.setVisibility(View.GONE);
                zyzlqk_content_ll.setVisibility(View.GONE);
                zyyyqk_content_ll.setVisibility(View.GONE);
                fmyghyfjzs_content_ll.setVisibility(View.GONE);
                jkpj_jkzd_content_ll.setVisibility(View.GONE);

            }
        });
        ybzk_ll.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                zz_image.setImageResource(R.mipmap.zsj);
                shfs_image.setImageResource(R.mipmap.zsj);
                zqgn_image.setImageResource(R.mipmap.zsj);
                chati_image.setImageResource(R.mipmap.zsj);
                fzjc_image.setImageResource(R.mipmap.zsj);
                xczyjkwt_image.setImageResource(R.mipmap.zsj);
                zyzlqk_image.setImageResource(R.mipmap.zsj);
                zyyyqk_image.setImageResource(R.mipmap.zsj);
                fmyghyfjzs_image.setImageResource(R.mipmap.zsj);
                jkpj_jkzd_image.setImageResource(R.mipmap.zsj);

                if (ybzk_content_ll.getVisibility() == View.VISIBLE) {
                    ybzk_image.setImageResource(R.mipmap.zsj);
                    ybzk_content_ll.setVisibility(View.GONE);
                } else {
                    ybzk_image.setImageResource(R.mipmap.xsj);
                    ybzk_content_ll.setVisibility(View.VISIBLE);
                }
                zz_content_ll.setVisibility(View.GONE);
                shfs_content_ll.setVisibility(View.GONE);
                zqgn_content_ll.setVisibility(View.GONE);
                chati_content_ll.setVisibility(View.GONE);
                fzjc_content_ll.setVisibility(View.GONE);

                xczyjkwt_content_ll.setVisibility(View.GONE);
                zyzlqk_content_ll.setVisibility(View.GONE);
                zyyyqk_content_ll.setVisibility(View.GONE);
                fmyghyfjzs_content_ll.setVisibility(View.GONE);
                jkpj_jkzd_content_ll.setVisibility(View.GONE);
            }
        });
        shfs_ll.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                zz_image.setImageResource(R.mipmap.zsj);
                ybzk_image.setImageResource(R.mipmap.zsj);
                shfs_image.setImageResource(R.mipmap.zsj);
                zqgn_image.setImageResource(R.mipmap.zsj);
                chati_image.setImageResource(R.mipmap.zsj);
                fzjc_image.setImageResource(R.mipmap.zsj);
                xczyjkwt_image.setImageResource(R.mipmap.zsj);
                zyzlqk_image.setImageResource(R.mipmap.zsj);
                zyyyqk_image.setImageResource(R.mipmap.zsj);
                fmyghyfjzs_image.setImageResource(R.mipmap.zsj);
                jkpj_jkzd_image.setImageResource(R.mipmap.zsj);

                if (shfs_content_ll.getVisibility() == View.VISIBLE) {
                    shfs_image.setImageResource(R.mipmap.zsj);
                    shfs_content_ll.setVisibility(View.GONE);
                } else {
                    shfs_image.setImageResource(R.mipmap.xsj);
                    shfs_content_ll.setVisibility(View.VISIBLE);
                }
                ybzk_content_ll.setVisibility(View.GONE);
                zz_content_ll.setVisibility(View.GONE);
                zqgn_content_ll.setVisibility(View.GONE);
                chati_content_ll.setVisibility(View.GONE);
                fzjc_content_ll.setVisibility(View.GONE);

                xczyjkwt_content_ll.setVisibility(View.GONE);
                zyzlqk_content_ll.setVisibility(View.GONE);
                zyyyqk_content_ll.setVisibility(View.GONE);
                fmyghyfjzs_content_ll.setVisibility(View.GONE);
                jkpj_jkzd_content_ll.setVisibility(View.GONE);
            }
        });
        zqgn_ll.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                zz_image.setImageResource(R.mipmap.zsj);
                ybzk_image.setImageResource(R.mipmap.zsj);
                shfs_image.setImageResource(R.mipmap.zsj);
                chati_image.setImageResource(R.mipmap.zsj);
                fzjc_image.setImageResource(R.mipmap.zsj);
                xczyjkwt_image.setImageResource(R.mipmap.zsj);
                zyzlqk_image.setImageResource(R.mipmap.zsj);
                zyyyqk_image.setImageResource(R.mipmap.zsj);
                fmyghyfjzs_image.setImageResource(R.mipmap.zsj);
                jkpj_jkzd_image.setImageResource(R.mipmap.zsj);

                if (zqgn_content_ll.getVisibility() == View.VISIBLE) {
                    zqgn_image.setImageResource(R.mipmap.zsj);
                    zqgn_content_ll.setVisibility(View.GONE);
                } else {
                    zqgn_image.setImageResource(R.mipmap.xsj);
                    zqgn_content_ll.setVisibility(View.VISIBLE);
                }
                ybzk_content_ll.setVisibility(View.GONE);
                shfs_content_ll.setVisibility(View.GONE);
                zz_content_ll.setVisibility(View.GONE);
                chati_content_ll.setVisibility(View.GONE);
                fzjc_content_ll.setVisibility(View.GONE);

                xczyjkwt_content_ll.setVisibility(View.GONE);
                zyzlqk_content_ll.setVisibility(View.GONE);
                zyyyqk_content_ll.setVisibility(View.GONE);
                fmyghyfjzs_content_ll.setVisibility(View.GONE);
                jkpj_jkzd_content_ll.setVisibility(View.GONE);
            }
        });
        chati_ll.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                zz_image.setImageResource(R.mipmap.zsj);
                ybzk_image.setImageResource(R.mipmap.zsj);
                shfs_image.setImageResource(R.mipmap.zsj);
                zqgn_image.setImageResource(R.mipmap.zsj);
                fzjc_image.setImageResource(R.mipmap.zsj);
                xczyjkwt_image.setImageResource(R.mipmap.zsj);
                zyzlqk_image.setImageResource(R.mipmap.zsj);
                zyyyqk_image.setImageResource(R.mipmap.zsj);
                fmyghyfjzs_image.setImageResource(R.mipmap.zsj);
                jkpj_jkzd_image.setImageResource(R.mipmap.zsj);

                if (chati_content_ll.getVisibility() == View.VISIBLE) {
                    chati_image.setImageResource(R.mipmap.zsj);
                    chati_content_ll.setVisibility(View.GONE);
                } else {
                    chati_image.setImageResource(R.mipmap.xsj);
                    chati_content_ll.setVisibility(View.VISIBLE);
                }
                ybzk_content_ll.setVisibility(View.GONE);
                shfs_content_ll.setVisibility(View.GONE);
                zqgn_content_ll.setVisibility(View.GONE);
                zz_content_ll.setVisibility(View.GONE);
                fzjc_content_ll.setVisibility(View.GONE);

                xczyjkwt_content_ll.setVisibility(View.GONE);
                zyzlqk_content_ll.setVisibility(View.GONE);
                zyyyqk_content_ll.setVisibility(View.GONE);
                fmyghyfjzs_content_ll.setVisibility(View.GONE);
                jkpj_jkzd_content_ll.setVisibility(View.GONE);
            }
        });
        fzjc_ll.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                zz_image.setImageResource(R.mipmap.zsj);
                ybzk_image.setImageResource(R.mipmap.zsj);
                shfs_image.setImageResource(R.mipmap.zsj);
                zqgn_image.setImageResource(R.mipmap.zsj);
                chati_image.setImageResource(R.mipmap.zsj);
                xczyjkwt_image.setImageResource(R.mipmap.zsj);
                zyzlqk_image.setImageResource(R.mipmap.zsj);
                zyyyqk_image.setImageResource(R.mipmap.zsj);
                fmyghyfjzs_image.setImageResource(R.mipmap.zsj);
                jkpj_jkzd_image.setImageResource(R.mipmap.zsj);

                if (fzjc_content_ll.getVisibility() == View.VISIBLE) {
                    fzjc_image.setImageResource(R.mipmap.zsj);
                    fzjc_content_ll.setVisibility(View.GONE);
                } else {
                    fzjc_image.setImageResource(R.mipmap.xsj);
                    fzjc_content_ll.setVisibility(View.VISIBLE);
                }
                ybzk_content_ll.setVisibility(View.GONE);
                shfs_content_ll.setVisibility(View.GONE);
                zqgn_content_ll.setVisibility(View.GONE);
                chati_content_ll.setVisibility(View.GONE);
                zz_content_ll.setVisibility(View.GONE);

                xczyjkwt_content_ll.setVisibility(View.GONE);
                zyzlqk_content_ll.setVisibility(View.GONE);
                zyyyqk_content_ll.setVisibility(View.GONE);
                fmyghyfjzs_content_ll.setVisibility(View.GONE);
                jkpj_jkzd_content_ll.setVisibility(View.GONE);
            }
        });


        xczyjkwt_ll.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                zz_image.setImageResource(R.mipmap.zsj);
                ybzk_image.setImageResource(R.mipmap.zsj);
                shfs_image.setImageResource(R.mipmap.zsj);
                zqgn_image.setImageResource(R.mipmap.zsj);
                chati_image.setImageResource(R.mipmap.zsj);
                fzjc_image.setImageResource(R.mipmap.zsj);
                zyzlqk_image.setImageResource(R.mipmap.zsj);
                zyyyqk_image.setImageResource(R.mipmap.zsj);
                fmyghyfjzs_image.setImageResource(R.mipmap.zsj);
                jkpj_jkzd_image.setImageResource(R.mipmap.zsj);

                if (xczyjkwt_content_ll.getVisibility() == View.VISIBLE) {
                    xczyjkwt_image.setImageResource(R.mipmap.zsj);
                    xczyjkwt_content_ll.setVisibility(View.GONE);
                } else {
                    xczyjkwt_image.setImageResource(R.mipmap.xsj);
                    xczyjkwt_content_ll.setVisibility(View.VISIBLE);
                }
                zz_content_ll.setVisibility(View.GONE);
                ybzk_content_ll.setVisibility(View.GONE);
                shfs_content_ll.setVisibility(View.GONE);
                zqgn_content_ll.setVisibility(View.GONE);
                chati_content_ll.setVisibility(View.GONE);
                fzjc_content_ll.setVisibility(View.GONE);

                zyzlqk_content_ll.setVisibility(View.GONE);
                zyyyqk_content_ll.setVisibility(View.GONE);
                fmyghyfjzs_content_ll.setVisibility(View.GONE);
                jkpj_jkzd_content_ll.setVisibility(View.GONE);
            }
        });


        zyzlqk_ll.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                zz_image.setImageResource(R.mipmap.zsj);
                ybzk_image.setImageResource(R.mipmap.zsj);
                shfs_image.setImageResource(R.mipmap.zsj);
                zqgn_image.setImageResource(R.mipmap.zsj);
                chati_image.setImageResource(R.mipmap.zsj);
                fzjc_image.setImageResource(R.mipmap.zsj);
                xczyjkwt_image.setImageResource(R.mipmap.zsj);
                zyyyqk_image.setImageResource(R.mipmap.zsj);
                fmyghyfjzs_image.setImageResource(R.mipmap.zsj);
                jkpj_jkzd_image.setImageResource(R.mipmap.zsj);

                if (zyzlqk_content_ll.getVisibility() == View.VISIBLE) {
                    zyzlqk_image.setImageResource(R.mipmap.zsj);
                    zyzlqk_content_ll.setVisibility(View.GONE);
                } else {
                    zyzlqk_image.setImageResource(R.mipmap.xsj);
                    zyzlqk_content_ll.setVisibility(View.VISIBLE);
                }
                zz_content_ll.setVisibility(View.GONE);
                ybzk_content_ll.setVisibility(View.GONE);
                shfs_content_ll.setVisibility(View.GONE);
                zqgn_content_ll.setVisibility(View.GONE);
                chati_content_ll.setVisibility(View.GONE);
                fzjc_content_ll.setVisibility(View.GONE);

                xczyjkwt_content_ll.setVisibility(View.GONE);
                zyyyqk_content_ll.setVisibility(View.GONE);
                fmyghyfjzs_content_ll.setVisibility(View.GONE);
                jkpj_jkzd_content_ll.setVisibility(View.GONE);
            }
        });

        zyyyqk_ll.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                zz_image.setImageResource(R.mipmap.zsj);
                ybzk_image.setImageResource(R.mipmap.zsj);
                shfs_image.setImageResource(R.mipmap.zsj);
                zqgn_image.setImageResource(R.mipmap.zsj);
                chati_image.setImageResource(R.mipmap.zsj);
                fzjc_image.setImageResource(R.mipmap.zsj);
                xczyjkwt_image.setImageResource(R.mipmap.zsj);
                zyzlqk_image.setImageResource(R.mipmap.zsj);
                fmyghyfjzs_image.setImageResource(R.mipmap.zsj);
                jkpj_jkzd_image.setImageResource(R.mipmap.zsj);

                if (zyyyqk_content_ll.getVisibility() == View.VISIBLE) {
                    zyyyqk_image.setImageResource(R.mipmap.zsj);
                    zyyyqk_content_ll.setVisibility(View.GONE);
                } else {
                    zyyyqk_image.setImageResource(R.mipmap.xsj);
                    zyyyqk_content_ll.setVisibility(View.VISIBLE);
                }
                zz_content_ll.setVisibility(View.GONE);
                ybzk_content_ll.setVisibility(View.GONE);
                shfs_content_ll.setVisibility(View.GONE);
                zqgn_content_ll.setVisibility(View.GONE);
                chati_content_ll.setVisibility(View.GONE);
                fzjc_content_ll.setVisibility(View.GONE);

                xczyjkwt_content_ll.setVisibility(View.GONE);
                zyzlqk_content_ll.setVisibility(View.GONE);
                fmyghyfjzs_content_ll.setVisibility(View.GONE);
                jkpj_jkzd_content_ll.setVisibility(View.GONE);
            }
        });

        fmyghyfjzs_ll.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                zz_image.setImageResource(R.mipmap.zsj);
                ybzk_image.setImageResource(R.mipmap.zsj);
                shfs_image.setImageResource(R.mipmap.zsj);
                zqgn_image.setImageResource(R.mipmap.zsj);
                chati_image.setImageResource(R.mipmap.zsj);
                fzjc_image.setImageResource(R.mipmap.zsj);
                xczyjkwt_image.setImageResource(R.mipmap.zsj);
                zyzlqk_image.setImageResource(R.mipmap.zsj);
                zyyyqk_image.setImageResource(R.mipmap.zsj);
                jkpj_jkzd_image.setImageResource(R.mipmap.zsj);

                if (fmyghyfjzs_content_ll.getVisibility() == View.VISIBLE) {
                    fmyghyfjzs_image.setImageResource(R.mipmap.zsj);
                    fmyghyfjzs_content_ll.setVisibility(View.GONE);
                } else {
                    fmyghyfjzs_image.setImageResource(R.mipmap.xsj);
                    fmyghyfjzs_content_ll.setVisibility(View.VISIBLE);
                }
                zz_content_ll.setVisibility(View.GONE);
                ybzk_content_ll.setVisibility(View.GONE);
                shfs_content_ll.setVisibility(View.GONE);
                zqgn_content_ll.setVisibility(View.GONE);
                chati_content_ll.setVisibility(View.GONE);
                fzjc_content_ll.setVisibility(View.GONE);

                xczyjkwt_content_ll.setVisibility(View.GONE);
                zyzlqk_content_ll.setVisibility(View.GONE);
                zyyyqk_content_ll.setVisibility(View.GONE);
                jkpj_jkzd_content_ll.setVisibility(View.GONE);
            }
        });

        jkpj_jkzd_ll.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                zz_image.setImageResource(R.mipmap.zsj);
                ybzk_image.setImageResource(R.mipmap.zsj);
                shfs_image.setImageResource(R.mipmap.zsj);
                zqgn_image.setImageResource(R.mipmap.zsj);
                chati_image.setImageResource(R.mipmap.zsj);
                fzjc_image.setImageResource(R.mipmap.zsj);
                xczyjkwt_image.setImageResource(R.mipmap.zsj);
                zyzlqk_image.setImageResource(R.mipmap.zsj);
                zyyyqk_image.setImageResource(R.mipmap.zsj);
                fmyghyfjzs_image.setImageResource(R.mipmap.zsj);

                if (jkpj_jkzd_content_ll.getVisibility() == View.VISIBLE) {
                    jkpj_jkzd_image.setImageResource(R.mipmap.zsj);
                    jkpj_jkzd_content_ll.setVisibility(View.GONE);
                } else {
                    jkpj_jkzd_image.setImageResource(R.mipmap.xsj);
                    jkpj_jkzd_content_ll.setVisibility(View.VISIBLE);
                }
                zz_content_ll.setVisibility(View.GONE);
                ybzk_content_ll.setVisibility(View.GONE);
                shfs_content_ll.setVisibility(View.GONE);
                zqgn_content_ll.setVisibility(View.GONE);
                chati_content_ll.setVisibility(View.GONE);
                fzjc_content_ll.setVisibility(View.GONE);

                xczyjkwt_content_ll.setVisibility(View.GONE);
                zyzlqk_content_ll.setVisibility(View.GONE);
                zyyyqk_content_ll.setVisibility(View.GONE);
                fmyghyfjzs_content_ll.setVisibility(View.GONE);
            }
        });
    }


    class CustomerListener implements View.OnClickListener {
        @Override
        public void onClick(View v) {
            if(obj != null && StringUtils.isEmpty(obj.getJKDAH())) {
                SweetAlertDialogUtil.WarningDialog(con, "提示", "选择居民用户后才能现场拍照");
            }else {
                Intent intent = new Intent(con, CameraChoose.class)
                        .putExtra("type", "edit")
                        .putExtra("cardnum", obj.getCARDNUM())
                        .putExtra("tabId", null==obj.getSFJLH()||"".equals(obj.getSFJLH()) ? "noid" : obj.getSFJLH())
                        .putExtra("tabType", "jktjb")
                        .putExtra("class", "tjb_info.class");
                startActivityForResult(intent, 119);
            }
        }
    }
}
